-
-
Notifications
You must be signed in to change notification settings - Fork 24
Is Server.Publish
threadsafe?
#50
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
Okay so with a minimal example (API endpoint Spamming
This happened around 40s after the SSE-client connected, and since in between I was spamming messages to the SSE-stream, I don't think it is timeout-related. After trying to reproduce this error (which always happens after some seconds/minutes), I also got a crash:
|
Hi and thank you for opening the issue! Could you please post the code here, either as a snippet or as a link to a repository? The underlying provider, |
Neither the superfluous write nor the double close panic should happen anymore in v0.11.0. That being said, it would still be interesting to see the actual code that caused this – normal usage wouldn't hit these edge cases. |
Closing this as fixed for now |
As in the title. Can
Server.Publish
be called concurrently from several go-routines?The text was updated successfully, but these errors were encountered: