mirror of
https://github.com/golang/net.git
synced 2026-03-31 18:37:08 +09:00
Transport currently deadlocks when receiving a WINDOW_UPDATE for a non-zero stream that increments its window beyond the 2^31-1 bytes limit. This is because endStreamError is called to end the non-zero stream, which tries to lock an already-locked mutex. Therefore, create and use endStreamErrorLocked instead, which assumes the mutex is already locked. Fixes golang/go#77331 Change-Id: Iea212f49a1f305d1bddefb8831dbaca00840870c Reviewed-on: https://go-review.googlesource.com/c/net/+/739700 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Nicholas Husin <husin@google.com> Reviewed-by: Damien Neil <dneil@google.com>