MCPcopy
hub / github.com/urllib3/urllib3 / _is_connection_error

Method _is_connection_error

src/urllib3/util/retry.py:389–395  ·  view source on GitHub ↗

Errors when we're fairly sure that the server did not receive the request, so it should be safe to retry.

(self, err: Exception)

Source from the content-addressed store, hash-verified

387 self._sleep_backoff()
388
389 def _is_connection_error(self, err: Exception) -> bool:
390 """Errors when we're fairly sure that the server did not receive the
391 request, so it should be safe to retry.
392 """
393 if isinstance(err, ProxyError):
394 err = err.original_error
395 return isinstance(err, ConnectTimeoutError)
396
397 def _is_read_error(self, err: Exception) -> bool:
398 """Errors that occur after the request has been started, so we should

Callers 1

incrementMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected