-
Notifications
You must be signed in to change notification settings - Fork 25
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
v0.4 sends back empty messages on Receiver::receive_data
#25
Comments
This happened in the past because the futures returned by async methods of Line 24 in c02379d
Without a test case I can not say for certain that the same happens here, but since you mentioned in your jsonrpsee issue that only the client is affected and paritytech/jsonrpsee#114 only changed the server, it may be worth investigating if a future may have been dropped before completion. |
Ok, thanks. Sounds likely that the future has been dropped indeed because it's done similarly in an event loop. |
Confirmed, those messages go away after "not dropping" the futures. |
Hi,
I have observed changed behavior in
v0.4
where occasionally emptyWebsocket messages
are propagated back to caller ofreceive_data
which wasn't the case inv0.3
what I have seen when when performing multiple request after each other in a loop :Is that expected?
If that's the case how would I as a user distinguish between an empty message or an actual
unexpected op code
?Is it reasonable to have another error kind, such as
EmtpyMessage
f25e9a0e
- client connection22132ab0
- server connectionThe text was updated successfully, but these errors were encountered: