-
Notifications
You must be signed in to change notification settings - Fork 18k
net/http: make Transport ignore 408 timeout messages from server [1.12 backport] #32367
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
This is an unusual backport rationale: popular HTTP servers on the Internet (at least, all of Google's) changed their behavior, and without this Go logs a warning to stderr, without a way to disable it. I suspect people will get annoyed by that, so this is somewhat preemptive. I was annoyed when I started seeing it in my logs the other day. I don't know when Google's GFEs started sending 408s, but I suspect it was recently since I started seeing the log messages. And if we do this, maybe Go 1.11 too (#32366). |
I'm fine with backporting this. It may or may not be critical, but there is no workaround. |
I suppose one workaround is people can do |
I'm going to approve this unusual backport because the workaround is quite complicated and error prone (it requires implementing a |
Change https://golang.org/cl/181239 mentions this issue: |
Closed by merging 918368e to release-branch.go1.12. |
…err on server 408 reply HTTP 408 responses now exist and are seen in the wild (e.g. from Google's GFE), so make Go's HTTP client not spam about them when seen. They're normal (now). Fixes #32367 Updates #32310 Change-Id: I558eb4654960c74cf20db1902ccaae13d03310f6 Reviewed-on: https://go-review.googlesource.com/c/go/+/179457 Run-TryBot: Brad Fitzpatrick <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]> (cherry picked from commit ba66d89) Reviewed-on: https://go-review.googlesource.com/c/go/+/181239 Run-TryBot: Dmitri Shuralyov <[email protected]> Reviewed-by: Brad Fitzpatrick <[email protected]>
I've been seeing this behavior for months or years. (I don't remember what servers, though.) I never thought of filing an issue for it, but I'm glad to see it fixed. |
@bradfitz requested issue #32310 to be considered for backport to the next 1.12 minor release.
The text was updated successfully, but these errors were encountered: