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: how to distinguish connection timeout or response timeout #29489

Open
wrztye opened this Issue Jan 1, 2019 · 2 comments

Comments

Projects
None yet
3 participants
@wrztye
Copy link

wrztye commented Jan 1, 2019

net/http/client: how to distinguish connection timeout or response timeout

@tomor

This comment has been minimized.

Copy link

tomor commented Jan 1, 2019

Can you describe more broadly the problem you are trying to solve?
Why do you need to distinguish connection timeout from response timeout?

@agnivade agnivade added the Question label Jan 1, 2019

@wrztye

This comment has been minimized.

Copy link

wrztye commented Jan 2, 2019

I'm working on an RPC framework.
If the connection timeouts, I can try again.
If the response timeouts, I can't retry. Because the request may have been sent.

@dmitshur dmitshur changed the title net/http/client: how to distinguish connection timeout or response timeout net/http: how to distinguish connection timeout or response timeout Jan 6, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment