The purpose of this PR is to simplify socket exceptions, so the move to ConnectionManager is smother.
Currently when getting a socket, an OSError is not treated as a TemporaryError and thus the retry is delayed. As far as I can tell, there is no benefit to delaying the next try here and it will cause ConnectionManager to be overly complex.
This treats OSError like any other error, and thus no custom handling will be needed in ConnectionManager.
If there is something I am missing, please let me know.
The purpose of this PR is to simplify socket exceptions, so the move to ConnectionManager is smother.
Currently when getting a socket, an
OSError
is not treated as aTemporaryError
and thus the retry is delayed. As far as I can tell, there is no benefit to delaying the next try here and it will causeConnectionManager
to be overly complex.This treats
OSError
like any other error, and thus no custom handling will be needed inConnectionManager
.If there is something I am missing, please let me know.