Repository navigation
Row 3028: cleanup writes nothing to a client that is gone - #1524
Merged
Merged
Conversation
Whatever cleanup tells the client (a trade's offer given back, a shop closed) went to a socket that may be shut, and a partner leaving a trade by quitting logged "Failed to finish trade ... Broken pipe". The player still got the offer back; only the write failed.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Playtest P458 (a trade cut short by a disconnect): the bot quit mid-trade with 2 ores and 10,000 mesos up, and the world logged
WARN Failed to finish trade error=I/O error: Broken pipe.finish_tradehad already given the offer back (DB checked); only the inventory/meso packets to the gone socket failed.ClientActor.closing, set ascleanupbegins;writethen returns Ok without touching the socket. Cleanup runs only once the connection is over (disconnect, error, kick, channel change), so nothing it writes could reach the client.