net/http: TimeoutHandler is incompatible with a ReverseProxy that has a negative FlushInterval #34198
Comments
@hochhaus, the incorrect return code problem should be fixed in 4faf8a8. Leaving implementation difficulties aside, a
Unfortunately there is still no way to set different write timeouts for different endpoints, nor to (re)set the timeout from a running handler, see #16100. Also note that your repro program is racy; you should at least introduce a delay before the |
Thanks @pam4. I'll update my code accordingly. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Run the following example code under both go
1.13
and1.12.9
.What did you expect to see?
What did you see instead?
The text was updated successfully, but these errors were encountered: