/ go Public
net/http: document that context cancellation does not apply to writable bodies #30876
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
To enable http.ReverseProxy to cleanly support websocket connections, http.Transport began returning writable response bodies.
This is documented. But what's undocumented is how this response body deals with the request context's cancellation.
Right now, the documentation says the cancellation of the request context will cause the response body to close, even if it is writable. However, this is not the case. If a writable response body is returned, cancellation of the request context does not affect it. This is certainly the right behaviour but should be documented.
The text was updated successfully, but these errors were encountered: