Skip to content

net/http: allow configuring read timeout of response body with transport #26941

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

Closed
nhooyr opened this issue Aug 12, 2018 · 3 comments
Closed

Comments

@nhooyr
Copy link
Contributor

nhooyr commented Aug 12, 2018

I'd like ResponseHeaderTimeout but for the response body.

@nhooyr nhooyr changed the title net/http/httputil: Allow configuring read timeout on response body net/http/httputil: allow configuring read timeout of response body with reverse proxy Aug 12, 2018
@meirf
Copy link
Contributor

meirf commented Aug 12, 2018

I commented on your other issue here: #26942 (comment). If you have the same response, let's just keep the convo there. Otherwise, could be better to have separate conversations.

@nhooyr
Copy link
Contributor Author

nhooyr commented Aug 12, 2018

Actually this should go into http.Transport.

@nhooyr nhooyr changed the title net/http/httputil: allow configuring read timeout of response body with reverse proxy net/http: allow configuring read timeout of response body with transport Aug 12, 2018
@nhooyr
Copy link
Contributor Author

nhooyr commented Aug 12, 2018

Just realized I can just cancel the request context to make this work. All is good.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants