]> Cypherpunks repositories - gostls13.git/commit
Revert "net/http: close accepted connection"
authorAlexander Yastrebov <yastrebov.alex@gmail.com>
Wed, 11 May 2022 23:22:45 +0000 (23:22 +0000)
committerIan Lance Taylor <iant@golang.org>
Wed, 11 May 2022 23:44:16 +0000 (23:44 +0000)
commitc14ed5b37c6cc387b29a7939cad7c7cbccd59934
treef2f78848a194a7829b08b0094019965f14494ec7
parentec5bdefd0a8f4a4dc7ba8d6ab4e1cf393384d03c
Revert "net/http: close accepted connection"

This reverts CL 353714.

The change closes accepted connection also in graceful shutdown which
breaks the fix for #33313 (and apparent duplicate #36819).

The proper fix should close accepted connection only if server is closed
but not in graceful shutdown.

Updates #48642

Change-Id: I2f7005f3f3037e6563745731bb2693923b654004
GitHub-Last-Rev: f6d885aa37e793811c1624f73a3d90bc733db048
GitHub-Pull-Request: golang/go#52823
Reviewed-on: https://go-review.googlesource.com/c/go/+/405454
Reviewed-by: Damien Neil <dneil@google.com>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/net/http/serve_test.go
src/net/http/server.go