Commit ed6d175
authored
okhttp: Assert no pending streams before transport READY (#12566)
### 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 #119851 parent 24bd540 commit ed6d175
File tree
1 file changed
+3
-1
lines changed- okhttp/src/main/java/io/grpc/okhttp
1 file changed
+3
-1
lines changedLines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
802 | 802 | | |
803 | 803 | | |
804 | 804 | | |
805 | | - | |
| 805 | + | |
| 806 | + | |
| 807 | + | |
806 | 808 | | |
807 | 809 | | |
808 | 810 | | |
| |||
0 commit comments