Skip to content

Conversation

@kristiank0
Copy link

This PR deals with issues around the context cancellation that meant that we failed to properly close down goroutines (goroutine leaks).

This PR also fixes a bug within the write loop that made it exit too early and left the engine unable to action logout + disconnect on teardown.

Finally, this PR also clears the closed read channel after processing the first close. This gives us the ability to disconnect and close the context only after the session has ended and we are safe to do so.

zee276 and others added 7 commits October 16, 2025 10:57
This commit enhances the handling of read/write loops by following
proper context cancellation. It fixes a goroutine leak found before, and
ensures that the run loop does not cycle continuously through disconnect
on run failures, but only once per connection.
@kristiank0 kristiank0 marked this pull request as draft November 27, 2025 19:35
@kristiank0 kristiank0 closed this Nov 27, 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.

2 participants