ShadowJonathan / eduP2P

An authenticated peer-to-peer network overlay
MIT License
3 stars 1 forks source link

Resumable sessions need explicit acknowledgements for their messages #46

Open ShadowJonathan opened 3 months ago

ShadowJonathan commented 3 months ago

This is an issue I realised while writing down a description of resumable sessions; If sessions try to queue their messages only after a connection has been dropped, some messages may still exist in a limbo state in the TCP buffer and the likes, and so be missed by the client.

To prevent this, we should have explicit ACKs from the client for messages sent by the server.

This is only an issue when we want to add resumable sessions.