Skip to content
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

UnixSocketConnection handle remote close #11

Open
bjoernricks opened this issue Nov 3, 2018 · 0 comments
Open

UnixSocketConnection handle remote close #11

bjoernricks opened this issue Nov 3, 2018 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@bjoernricks
Copy link
Contributor

When trying to send a command to a UnixSocketConnection closed e.g. by gvmd after an error response a IOError is returned. In this case the socket must be re-opened. Maybe it would also be possible to check if the connection is closed.

Example code for catching such an exception

except IOError as e:
    if e.errno == errno.EPIPE:
@bjoernricks bjoernricks added the enhancement New feature or request label Nov 3, 2018
@bjoernricks bjoernricks self-assigned this Nov 3, 2018
@y0urself y0urself self-assigned this Jan 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants