-
Notifications
You must be signed in to change notification settings - Fork 357
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
使用 HTTP/2 时经常触发错误 #376
Comments
应该是服务端不支持吧,改成强制使用HTTP1试试 |
@xulz 那不是,成功访问的也有很多的,这是频率高的偶发事件,因为 req 有重试机制,它又成功了 |
我也遇到了同样的问题,使用标准库的http client 请求就没有问题,换到req 上来 就会触发http2: Transport received Server's graceful shutdown GOAWAY 错误,尝试添加重试这个错误还是会被抛出来 |
不设置EnableForceHTTP2 的情况下默认走的是OnlyCachedConn,链接用完了不会新建,这种情况会报上面的错误,设置了EnableForceHTTP2就好了 |
@rusherman 强制 HTTP2 会对使用 |
@imroc 请问,是否有好的方式修正这个错误?? |
可以用 client.SetCommonRetryCount(n) 自动重试下。如果相同参数下,标准库没这个问题的话,得深入研究下了,欢迎大家来帮忙定位贡献下 |
在使用 HTTP/2 时,经常触发
http2: Transport received Server's graceful shutdown GOAWAY
错误,请问我该如何处理掉这个错误?The text was updated successfully, but these errors were encountered: