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: http2 addConnIfNeeded with the same key multiple. #42762
Comments
My test code: https://play.golang.org/p/ehSaYRrnW99 |
cc @fraenkel |
It will be more obvious if you turn on http2 debug. You are making an http2 request which fails. The default behavior is to retry until certain conditions hold true. |
Thank you for your kindly help. I would like to know if it is necessary to retry with more than one handle, the default client timeout is unlimited, which causes the handles to be easily exhausted. |
Again, look at what is actually happening. You are sending a request but the reply is an immediate RST_STREAM with REFUSED_STREAM. Per 8.1.4 of the http2 spec: |
Thank for your help again.I will close the issue.
…
在 2020年11月25日,12:45,Michael Fraenkel ***@***.***> 写道:
Again, look at what is actually happening. You are sending a request but the reply is an immediate RST_STREAM with REFUSED_STREAM.
Per 8.1.4 of the http2 spec:
Requests that have not been processed have not failed; clients MAY
automatically retry them, even those with non-idempotent methods.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
Before, I file the issue: #42662 .
But I closed it because I think it may something wrong with the server.
I'm trying to make why the HTTP client retries again and again and why the fd get high.
I compiled with this commit: xiekeyi98@a8c91a2
and the debug message makes me confused.
I was wondering if someone may help me to make it clear? Why it retry with the same key(firmacct.html5.qq.com:443) again and again?
Thanks a lot!
The text was updated successfully, but these errors were encountered: