Skip to content

Commit

Permalink
handle request retry (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
YangSen-qn authored Apr 16, 2024
1 parent d668ba0 commit 1d3fbec
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion internal/clientv2/interceptor_retry_simple.go
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,10 @@ func isNetworkErrorWithOpError(err *net.OpError) bool {
return isNetworkErrorWithOpError(t)
default:
desc := err.Err.Error()
if strings.Contains(desc, "use of closed network connection") {
if strings.Contains(desc, "use of closed network connection") ||
strings.Contains(desc, "unexpected EOF reading trailer") ||
strings.Contains(desc, "transport connection broken") ||
strings.Contains(desc, "server closed idle connection") {
return true
}
}
Expand Down

0 comments on commit 1d3fbec

Please sign in to comment.