Skip to content
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

Improve websocket write handling #45

Merged
merged 1 commit into from
Nov 26, 2024
Merged

Improve websocket write handling #45

merged 1 commit into from
Nov 26, 2024

Conversation

DerAndereAndi
Copy link
Member

Increase the buffer size of the write channel to 1024. This way adding messages will never block if e.g. at the same time the connection is closed. If the buffer is full, return an error, as sending isn’t possible.

This fixes #42

Increase the buffer size of the write channel to 1024. This way adding messages will never block if e.g. at the same time the connection is closed. If the buffer is full, return an error, as sending isn’t possible.

This fixes #42
@DerAndereAndi
Copy link
Member Author

@mohamedeltawel and @AhmedMagdyCoretech could you please give this change a try and check wether the problem in #42 is fixed or still appears?

@coveralls
Copy link

Coverage Status

coverage: 93.268% (+0.2%) from 93.041%
when pulling 3b345c3 on feature/improve-ws
into d68708c on dev.

@mohamedeltawel
Copy link
Contributor

Hello Andreas,
I've tested this change in our application and the mentioned issue in #45 did not appear again.

@DerAndereAndi
Copy link
Member Author

Thank you very much @mohamedeltawel

@DerAndereAndi DerAndereAndi merged commit d388b85 into dev Nov 26, 2024
6 checks passed
@DerAndereAndi DerAndereAndi deleted the feature/improve-ws branch November 26, 2024 15:48
@DerAndereAndi DerAndereAndi added this to the Version 0.7 milestone Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Possible deadlock on WS close
3 participants