]> Cypherpunks repositories - gostls13.git/commit
net/http: mark http/2 connections active
authorMichael Fraenkel <michael.fraenkel@gmail.com>
Sat, 27 Jun 2020 19:31:34 +0000 (13:31 -0600)
committerEmmanuel Odeke <emm.odeke@gmail.com>
Sun, 6 Sep 2020 17:26:55 +0000 (17:26 +0000)
commit617f2c3e35cdc8483b950aa3ef18d92965d63197
tree2a30a1ebc3854a95206d0deecfc4604d1f94c040
parentb60ec4cc4b230f4d0787acf82057947b8bf80cea
net/http: mark http/2 connections active

On Server.Shutdown, all idle connections are closed.
A caveat for new connections is that they are marked idle
after 5 seconds.
Previously new HTTP/2 connections were marked New, and after 5 seconds,
they would then become idle. With this change, we now mark HTTP/2
connections as Active to allow the proper shutdown sequence to occur.

Fixes #36946
Fixes #39776

Change-Id: I31efbf64b9a2850ca544da797f86d7e1b3378e8b
Reviewed-on: https://go-review.googlesource.com/c/go/+/240278
Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
Run-TryBot: Emmanuel Odeke <emm.odeke@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/net/http/export_test.go
src/net/http/serve_test.go
src/net/http/server.go