You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In #314 the stream implementation of the asynchronous socket has been adjusted.
However, when the server now disconnects unexpectedly (e.g. process is killed etc.), the following issue can now be observed:
thread 'tokio-runtime-worker' panicked at 'Unfold must not be polled after it returned `Poll::Ready(None)`'
Apparently, this issue existed before #314 already.
However, due to the different stream implementation, calls to stream.next() after the stream has terminated wouldn't panic but instead always return None leading to an infinite loop.
The issue only now surfaced because of the different stream implementation.
The text was updated successfully, but these errors were encountered:
Problem Description
In #314 the stream implementation of the asynchronous socket has been adjusted.
However, when the server now disconnects unexpectedly (e.g. process is killed etc.), the following issue can now be observed:
Steps To Reproduce
Possible Solution
The loop which polls the stream in the asynchronous client builder needs to stop when the stream returns
None
:rust-socketio/socketio/src/asynchronous/client/builder.rs
Lines 346 to 355 in cb107ba
Apparently, this issue existed before #314 already.
However, due to the different stream implementation, calls to
stream.next()
after the stream has terminated wouldn't panic but instead always returnNone
leading to an infinite loop.The issue only now surfaced because of the different stream implementation.
The text was updated successfully, but these errors were encountered: