-
Notifications
You must be signed in to change notification settings - Fork 18k
x/net/http2: connection reused with DisableKeepAlives #22441
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
CC @tombergan |
Might be related to #22413 |
https://golang.org/cl/33153 was wrong. When keep alives are disabled, we don't start graceful shutdown (i.e., send GOAWAY) until the first request completes. We should actually start graceful shutdown when the first request is received. |
Actually, this is WAI according to https://golang.org/cl/33153:
@benburkert, what are you trying to achieve by disabling keep alives on HTTP/2? This feature happened in #17717 where Brad was trying to give meaning to SetKeepAlivesEnabled for HTTP/2. In all honesty it's kind of weird for the HTTP/2 library to support this option, since "keep alives" are an HTTP/1 notion that doesn't translate to HTTP/2. |
Removing the 1.10 milestone since there is no bug that I can see. I will leave this open in state WaitingForInfo in case @benburkert wants to respond to the above question. |
Timed out in state WaitingForInfo. Closing. (I am just a bot, though. Please speak up if this is a mistake or you have the requested information.) |
Please answer these questions before submitting your issue. Thanks!
What version of Go are you using (
go version
)?go version go1.9 darwin/amd64
Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?What did you do?
Send multiple requests to the same h2 server with keep alives disabled.
https://play.golang.org/p/sxjh2Yq-hg
What did you expect to see?
no output because connections are not used across requests.
What did you see instead?
The text was updated successfully, but these errors were encountered: