Skip to content

JsonRpcConnection: don't write any data on shutdown#10216

Closed
Al2Klimov wants to merge 2 commits intomasterfrom
Al2Klimov-patch-13
Closed

JsonRpcConnection: don't write any data on shutdown#10216
Al2Klimov wants to merge 2 commits intomasterfrom
Al2Klimov-patch-13

Conversation

@Al2Klimov
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 get things done until write error (which can't be associated with a particular message anyway, due to buffering), but just let the peer go.

@Al2Klimov Al2Klimov added the area/distributed Distributed monitoring (master, satellites, clients) label Nov 5, 2024
@cla-bot cla-bot bot added the cla/signed label Nov 5, 2024
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 get things done until write error (which can't be associated with a particular message anyway, due to buffering), but just let the peer go.
In fact, this is already done for both loops (for each bulk and for each message of it). So once the remote signals EOF, don't try to get things done until write error (which can't be associated with a particular message anyway, due to buffering), but just let the peer go.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/distributed Distributed monitoring (master, satellites, clients) cla/signed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant