Skip to content

Row 3029: a write to a client that has left is a disconnect - #1525

Merged
neeerp merged 1 commit into
masterfrom
v83/write-reset-1
Nov 9, 2026
Merged

neeerp merged 1 commit into
masterfrom
v83/write-reset-1

Conversation

@neeerp

@neeerp neeerp commented Nov 9, 2026

Copy link
Copy Markdown
Owner

A client that leaves while the server is writing to it (e.g. a shop owner quitting with a visitor inside, playtest P459) logged ERROR Closing client connection ... Broken pipe. The reader already mapped ConnectionReset/Aborted to ClientDisconnected; the shared io::peer_left now also covers BrokenPipe and PacketWriter maps its write errors through it, so it logs Client disconnected at INFO.

Tests: new unit test writing_to_a_client_that_left_is_a_disconnect; io tests; harness trade, personal_shop, change_channel, presence_same_map, logout_items on the lane world (no ERRORs in the log).

…rror

A shop owner quitting with a visitor inside logged ERROR 'Closing client
connection ... Broken pipe'. The reader already treated a reset as the
client leaving; the writer now does too, for resets and broken pipes.
@neeerp
neeerp merged commit ff481a0 into master Nov 9, 2026
1 check passed
@neeerp
neeerp deleted the v83/write-reset-1 branch November 9, 2026 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant