-
Notifications
You must be signed in to change notification settings - Fork 312
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
add nocopy to conn #349
Comments
Semi-related: If I understand the code correctly, it is using a single-element channel and a buffer plus mutex in order to create an unbounded channel. This means that no backpressure will be applied to the sender if the receiver is not fast enough at processing the messages. I think this should be changed. |
It turns out that we were storing the However, are there any ways to ensure this does not happen again? Can we somehow make sure that |
It is already documented, that's why the receiver on all Conn methods is a pointer and why a pointer is returned. You can't go from pointer -> value and expect things to work. Yup I'll add golang/go#8005 (comment) |
Fixed in dev. |
Stack trace:
At the time where the panic happens, the message that is about to be read has already been received by the browser.
I looked at the relevant code and it looks a bit weird at first but could not find any obvious bug causing this.
The text was updated successfully, but these errors were encountered: