Skip to content

JsonRpcConnection: don't write new messages on shutdown#10295

Merged
yhabteab merged 1 commit intosupport/2.14from
do-not-write-new-messages-on-shutdown
Jan 13, 2025
Merged

JsonRpcConnection: don't write new messages on shutdown#10295
yhabteab merged 1 commit intosupport/2.14from
do-not-write-new-messages-on-shutdown

Conversation

@yhabteab
Copy link
Member

In fact, this is already done for the outer loop (for each bulk), just not yet for the inner one (for each message of a bulk). So once the remote signals EOF, don't try to process the remaining queue until write error (which can't be associated with a particular message anyway, due to buffering), but just let the peer go. Flush already half-written messages, though, if possible.
@yhabteab yhabteab added this to the 2.14.4 milestone Jan 13, 2025
@yhabteab yhabteab requested a review from Al2Klimov January 13, 2025 10:18
@cla-bot cla-bot bot added the cla/signed label Jan 13, 2025
@yhabteab yhabteab enabled auto-merge January 13, 2025 11:15
@yhabteab yhabteab merged commit 7defb0c into support/2.14 Jan 13, 2025
@yhabteab yhabteab deleted the do-not-write-new-messages-on-shutdown branch January 13, 2025 12:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants