net/http: document that context cancellation does not apply to writable bodies #30876
Labels
Documentation
Issues describing a change to documentation.
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
#26937
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.
See #26101
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: