Errors when we're fairly sure that the server did not receive the request, so it should be safe to retry.
(self, err: Exception)
| 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 |