Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
x/net/http2: if http1 Server's keep-alives are disabled, only do one request #17717
HTTP/2 does not support
The HTTP/2 protocol is centered around the idea of multiple requests per connection. If someone wants one request per connection, they should just use HTTP/1. Maybe just update the SetKeepAliveEnabled docs?
If the user is using Server.SetKeepAlivesEnabled(false), assume they have a reason and respect it. Make HTTP/2 behave like HTTP/1 (except a bit nicer, since we have GOAWAY). Updates golang/go#17717 Change-Id: I4a5ce324f0ac8653d83e75029063cd2e270a1048 Reviewed-on: https://go-review.googlesource.com/33153 Reviewed-by: Brad Fitzpatrick <firstname.lastname@example.org>