-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Throw on received message if the responsible
RequestOnConn
has fini…
…shed Fixes #309. When a RoC of a multi-node request finishes, it RoC stays registered in the `RequestOnConnSet` until all other RoCs have finished, too. During that time the client can receive a message for this request through this connection. It then looks the RoC up in the RoCset, finds it and calls `RequestOnConn.setReceivedPayload`, which attempts to resume the fiber - but the fiber has terminated so it cannot be resumed, and an assertion fails. This is the case of a protocol error, the client has finished handling the request while the node is still sending messages. Handle it by tracking which of the RoCs in the RoCset have finished and throwing `ProtocolError` when attempting to use one.
- Loading branch information
1 parent
704196a
commit 2b6afcd
Showing
4 changed files
with
36 additions
and
14 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
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
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
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