Skip to content

Commit 1d3fbec

Browse files
authored
handle request retry (#123)
1 parent d668ba0 commit 1d3fbec

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

internal/clientv2/interceptor_retry_simple.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,10 @@ func isNetworkErrorWithOpError(err *net.OpError) bool {
207207
return isNetworkErrorWithOpError(t)
208208
default:
209209
desc := err.Err.Error()
210-
if strings.Contains(desc, "use of closed network connection") {
210+
if strings.Contains(desc, "use of closed network connection") ||
211+
strings.Contains(desc, "unexpected EOF reading trailer") ||
212+
strings.Contains(desc, "transport connection broken") ||
213+
strings.Contains(desc, "server closed idle connection") {
211214
return true
212215
}
213216
}

0 commit comments

Comments
 (0)