Skip to content

Add unit tests and minor fixes for the muxManager#148

Merged
temporal-nick merged 1 commit intomainfrom
nick/lockingtests
Sep 8, 2025
Merged

Add unit tests and minor fixes for the muxManager#148
temporal-nick merged 1 commit intomainfrom
nick/lockingtests

Conversation

@temporal-nick
Copy link
Collaborator

What was changed

Added unit tests for MuxManager and MuxProvider that assert the locking correctness. Also added session.Ping() to the initial yamux.Session establish to force it to eagerly establish the mux.

Why?

These tests demonstrate that the muxManager will not block or supply incorrect data when connections are broken.

By eagerly checking the mux is working before unblocking waiting threads, we avoid previous issues where a dead session could be supplied to gRPC.

@temporal-nick temporal-nick requested a review from a team as a code owner September 8, 2025 16:11
@temporal-nick temporal-nick requested a review from pglass September 8, 2025 16:11
@temporal-nick temporal-nick merged commit 8f8427c into main Sep 8, 2025
6 checks passed
@temporal-nick temporal-nick deleted the nick/lockingtests branch September 8, 2025 18:33
hai719 pushed a commit to hai719/s2s-proxy that referenced this pull request Nov 24, 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