Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
net/http/httputil: ReverseProxy gives "context canceled" message when client disappears #20071
When clients prematurely abandon a proxied HTTP request, there is no identified cause other than "context canceled".
What version of Go are you using (
I think, but I'm not sure, that it would be very easy to add a log specifying that the client has gone away:
case <-notifyChan: p.logf("connection closed by client") // or "client went away" or something like that cancel()
But I still believe it's not necessary.
What do you think?
referenced this issue
Jan 4, 2018
I believe https://golang.org/src/net/http/httputil/reverseproxy.go#L234 will report that error since the latest Go minor's versions, one can influence the error logger, trying to match on these context errors.