-
Notifications
You must be signed in to change notification settings - Fork 194
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix AbstractTransport repr socket error (#361) #431
Conversation
Is due to docker/docker-py#3256 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the changes seems OK. but lets wait until the CI is fully green again
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you please rebase it? should be passing after rebase
If AbstractTransport's self.sock is disconnected, then self.sock.getpeername() will raise an error in __repr__, which shows up in backtraces for other upstream errors. Fix this by catching socket.error in __repr__ and putting the error info in to the returned repr string. Fixes celery#361
Done. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@auvipy - CI is passing, giving you the last word here |
thanks all for your efforts and insights! |
If AbstractTransport's self.sock is disconnected, then self.sock.getpeername() will raise an error in repr, which shows up in backtraces for other upstream errors.
Fix this by catching socket.error in repr and putting the error info in to the returned repr string.
Fixes #361