-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Session: Reintroduce delayed sending for disconnect notification
this is directed at MCPE to work around the infamous race condition bug that causes disconnects and transfers to be unreliable. It reintroduces the old mechanism for server-initiated disconnects that was used in 0.12: - First, flush all packets out to clients - Send disconnect notification - Wait for ack - Discard session On 0.13, it sent the disconnect notification immediately when disconnect was initiated, which caused the client to sometimes not handle some packets.
- Loading branch information
Showing
1 changed file
with
33 additions
and
10 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