reliable messages may be discarded, without notice

Aperta
#464 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
18/100
Tipo di issue
Funzionalità
Chiarezza
Da chiarire
Stato di attività
Attiva
Stack tecnologico
cpp
Ambito
networking

Direzione di ricerca

The issue lists four cases where reliable messages are silently dropped: full send buffer, full receive buffer, full receive message count, and oversize received messages. Start by tracing the reliable send and receive paths for each limit, and check how the library reports or hides the drop. Done means the maintainers have decided whether to notify the application, close the connection, or expose sequence numbers, and any agreed change is covered by tests. This needs maintainer input before any code.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

There are several situations in which steam discards reliable messages:

  • send buffer fills up
  • recv buffer fills up
  • recv messages count fills up
  • received message is longer than the limit

and possibly more.

Steam never notifies the application that a reliable message was discarded. It also allows sending and receiving more messages. This leaves a gap in the supposedly reliable messages. And that causes issues.

Is it possible to configure steam to detect such case (on the receiving end), and either notify the application, or close the connection?

Alternatively, I have implemented a simple sequence number per lane on top of steam messages, but that is 4 or 8 bytes per message, which I would prefer to avoid. Does steam provide sufficient information to detect discarded reliable message, eg. using the sequence number that steam provides? Are these sequence numbers shared or separate for each lane? Are they separated or shared between reliable and unreliable messages in the same lane?

Thanks for any clarifications.

Lingua principale
C++
Stelle
10k
Fork
767
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di ValveSoftware/GameNetworkingSockets

Tutte le issue di ValveSoftware/GameNetworkingSockets

Issue simili

Altre issue su C++

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.