is_socket_open() keeps returning True when the connection is closed by something other than close().
For example, when the remote node issues a FIN due to timeout.
Plus trying to catch the ConnectionException(msg) that will be raised when trying to use the closed socket gives a NameError, but that is maybe my problem.
is_socket_open() should return false when the tcp connection is closed.
is_socket_open()
keeps returningTrue
when the connection is closed by something other thanclose()
. For example, when the remote node issues a FIN due to timeout.Plus trying to catch the
ConnectionException(msg)
that will be raised when trying to use the closed socket gives a NameError, but that is maybe my problem.is_socket_open() should return false when the tcp connection is closed.