-
-
Notifications
You must be signed in to change notification settings - Fork 192
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#259] Allow client to detect sudden abnormal disconnects (e.g. airpl…
…ane mode) Situation before #230: Clients maintain keep-alive, sending pings to server. On sudden conn break (e.g. airplane mode), clients would know about the break but the server wouldn't Situation after #230: Server maintains keep-alive, sending pings to clients. On sudden conn break (e.g. airplane mode), server would know about the break but clients wouldn't. As of this commit: Server and clients each maintain a keep-alive[1]. I.e. each side will attempt to ping if it hasn't heard from the other side in a prescribed window. On sudden conn break, each side will be made aware of the break when its own scheduled window fires and fails to successfully send a ping. [1] Timeouts should be different. In particular, the client may like to choose a much more aggressive window (e.g. 5s) to provide a rapid indicator to users.
- Loading branch information
1 parent
defc610
commit 0312cfe
Showing
1 changed file
with
60 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters