Skip to content
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

net/http: Allow configuring write timeout of header/body on transport #26942

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

net/http: Allow configuring write timeout of header/body on transport #26942

nhooyr opened this issue Aug 12, 2018 · 2 comments

Comments

@nhooyr
Copy link
Contributor

nhooyr commented Aug 12, 2018

Not sure how important this is but given *http.Server has fields for this, maybe *httputil.ReverseProxy should as well.

@meirf
Copy link
Contributor

meirf commented Aug 12, 2018

Have you considered setting whatever you want on http.Server and then setting the reverse proxy as the Server's Handler? Do you see any concerns with that?

@nhooyr nhooyr changed the title net/http/httputil: Allow configuring write timeout of header/body on reverse proxy net/http: Allow configuring write timeout of header/body on 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.

@nhooyr nhooyr closed this as completed Aug 12, 2018
@golang golang locked and limited conversation to collaborators Aug 12, 2019
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