-
Notifications
You must be signed in to change notification settings - Fork 85
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
CheckForDoubleRead false possitive in WebSocketConnectionRfc6455.cs #6
Comments
I should note, it does appear to send/receive the empty packet, but it appears the next poll has the previous header retained. |
Issue #6: When a message was empty, the header was not correctly disposed.
Hi, Thank you for taking the time to report this, I could reproduce the problem as you explained and I am confident I fixed it in this commit I just did: 0205272 I will take some days till I release a new NuGet package, in the mean time you can use this 2.1.2 pre-release or the source directly (as I suspect you are already doing). Let me know if you have any further issue. Cheers. |
Yes, this appears to correct the issue in all my test cases. Thanks for the prompt response and update! |
No problem 👍 |
If you send an empty string as the payload over the stream, ReadMessage/ReadString and its variants will throw an exception from CheckForDoubleRead line 253
I haven't taken the time to research the cause, but I'm guessing the header doesn't get cleared after a 0 payload message.
This can be reproduced by sending an empty string to the EchoServer example.
The text was updated successfully, but these errors were encountered: