Retire the session by setting the error score to the maximum value. This method should be used if the session usage was unsuccessful and you are sure that it is because of the session configuration and not any external matters. For example when server returns 403 status code.
(self)
| 211 | self.retire() |
| 212 | |
| 213 | def retire(self) -> None: |
| 214 | """Retire the session by setting the error score to the maximum value. |
| 215 | |
| 216 | This method should be used if the session usage was unsuccessful and you are sure that it is because of |
| 217 | the session configuration and not any external matters. For example when server returns 403 status code. |
| 218 | If the session does not work due to some external factors as server error such as 5XX you probably want |
| 219 | to use `mark_bad` method. |
| 220 | """ |
| 221 | self._error_score += self._max_error_score |
| 222 | |
| 223 | def is_blocked_status_code( |
| 224 | self, |
no outgoing calls