python-gvm icon indicating copy to clipboard operation
python-gvm copied to clipboard

UnixSocketConnection handle remote close

Open bjoernricks opened this issue 7 years ago • 0 comments

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 avatar Nov 03 '18 11:11 bjoernricks