]> Cypherpunks.ru repositories - gostls13.git/commit
net/http: attempt deadlock fix in TestDisableKeepAliveUpgrade
authorAnmol Sethi <hi@nhooyr.io>
Fri, 11 Dec 2020 23:01:12 +0000 (23:01 +0000)
committerDamien Neil <dneil@google.com>
Mon, 14 Dec 2020 19:19:09 +0000 (19:19 +0000)
commitc81343ce3aa1b8f1b2539a3d391f628f69a0a490
treeda3c68c40b837b2fb0ad44e4266775f70a50fac6
parent828746ec57e76e49527791bca500b27b77576d79
net/http: attempt deadlock fix in TestDisableKeepAliveUpgrade

1. The test now checks the response status code.
2. The transport has been changed to not set "Connection: Close" if
   DisableKeepAlive is set and the request is a HTTP/1.1 protocol
   upgrade.

Updates #43073

Change-Id: I9977a18b33b8747ef847a8d11bb7b4f2d8053b8c
GitHub-Last-Rev: f809cebb139df4f5560a8456973351c95a3dfa97
GitHub-Pull-Request: golang/go#43086
Reviewed-on: https://go-review.googlesource.com/c/go/+/276375
Run-TryBot: Bryan C. Mills <bcmills@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Damien Neil <dneil@google.com>
Trust: Dmitri Shuralyov <dmitshur@golang.org>
src/net/http/response.go
src/net/http/serve_test.go
src/net/http/transport.go