-
Notifications
You must be signed in to change notification settings - Fork 1.9k
withTimeoutOrNull and channel send/receive #1355
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
These particular code path are pretty well covered by functional and stress-tests and I wonder what might have gone wrong. Any chance for a reproducer? |
Thank you for response @elizarov, I tried to reproduce this issue without any success. In this particular case the I will reopen this issue when further updates will be available. Thank you again. |
I answer myself.
Bug or not, chunking a channel using Using a selector is the way to go, maybe it is slower and harder to write, moreover it requires to cancel |
Still it should work and pretty-well covered by tests.... |
Our server is affected by sporadic errors, these errors are not well defined and not reproducible.
I wrote a bad test case (#1281) some time ago, sorry, a have to file a new issue.
In our previous experience the major candidate is
withTimeoutOrNull
+channel.send
, the in that case the coroutine hangs indefinitely.The prevision version below worked without any issue
Yesterday we get a similar issue, the code is:
We suspect that a single
value
was extracted but not consumed.Thoughts?
Edit:
consume
is not a suspending functionThe text was updated successfully, but these errors were encountered: