astitcher commented on code in PR #365:
URL: https://github.com/apache/qpid-proton/pull/365#discussion_r845202392
##########
python/proton/_io.py:
##########
@@ -65,7 +65,7 @@ def connect(addr) -> socket.socket:
try:
s.connect(addr[4])
except socket.error as e:
- if e.errno not in (errno.EINPROGRESS, errno.EWOULDBLOCK,
errno.EAGAIN):
+ if e.errno not in (errno.EINPROGRESS, errno.EWOULDBLOCK,
errno.EAGAIN, errno.ENETUNREACH):
Review Comment:
I'm pretty sure this change doesn't make sense at this point in the code:
The very low level connect is only making sure that a connect on a
nonblocking socket worked - the only "non errors" on a non blocking socket are
the ones listed - they indicate that the operation is in progress.
ENETUNREACH indicates that the connect operation failed (at this low level).
Any retries because of this kind of failure need to be handled at a higher
level.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]