rsocket / rsocket-cpp

C++ implementation of RSocket
http://rsocket.io
Apache License 2.0
253 stars 99 forks source link

Ensure queued frames are discarded after the StateMachine is closed #786

Closed somasun closed 7 years ago

somasun commented 7 years ago

Since the client StateMachine and transport can run in different eventbases now, there is a possibility that the stateMachine has been closed on stateMachineEvb, but there is a frame queued on stateMachineEvb for processing. Discard all such frames, the client can request them back from the server after resumption.

Testing: Some tests were occasionally failing, they pass consistently now.