MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / isTimeoutError

Function isTimeoutError

internal/home/client.go:1070–1079  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

1068}
1069
1070func isTimeoutError(err error) bool {
1071 if err == nil {
1072 return false
1073 }
1074 if errors.Is(err, context.DeadlineExceeded) {
1075 return true
1076 }
1077 var netErr net.Error
1078 return errors.As(err, &netErr) && netErr.Timeout()
1079}
1080
1081func sleepWithContext(ctx context.Context, d time.Duration) {
1082 if d <= 0 {

Callers 1

StartConfigSubscriberMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected