Skip to content

Conversation

@becomeStar
Copy link
Contributor

What this PR does

Based on guidance from maintainers and what I have observed in the OkHttpClientTransport lifecycle, it seems that no pending streams should exist when the transport transitions to READY.
This PR adds an assertion to help verify this invariant.


Note on Testing

All existing tests pass with this assertion in place.


This PR corresponds to Step 2 of the plan discussed in #11985, by adding an explicit assertion to help ensure the transport readiness invariant.

Fixes #11985

@kannanjgithub kannanjgithub added the kokoro:run Add this label to a PR to tell Kokoro the code is safe and tests can be run label Dec 16, 2025
@grpc-kokoro grpc-kokoro removed kokoro:run Add this label to a PR to tell Kokoro the code is safe and tests can be run labels Dec 16, 2025
@kannanjgithub
Copy link
Contributor

/gcbrun

@kannanjgithub kannanjgithub merged commit ed6d175 into grpc:master Dec 16, 2025
17 checks passed
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.

okhttp: connection startup race can overwrite MAX_CONCURRENT_STREAMS

3 participants