[chttp2] Fix tsan race (#32576)
Noticed here: https://source.cloud.google.com/results/invocations/779f3614-42bd-44bb-a00d-ab56f9749095/targets/%2F%2Ftest%2Fcore%2Fend2end:h2_full_test@retry_cancel4@poller%3Depoll1@experiment%3Devent_engine_client/log A race between starting reading and transport close. Fix: move the closure setting inside the combiner, and check if the transport is closed at that time. <!-- If you know who should review your pull request, please assign it to that person, otherwise the pull request would get assigned randomly. If your pull request is for a specific language, please add the appropriate lang label. -->pull/32586/head
parent
febed5121a
commit
2df6ca26dc
1 changed files with 18 additions and 3 deletions
Loading…
Reference in new issue