Set short timeout to fail fast when the OMM is unreachable
This commit is contained in:
parent
421cc06d6c
commit
11f96a6069
@ -26,6 +26,7 @@ class Connection:
|
||||
self._host = host
|
||||
self._port = port
|
||||
self._socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
self._socket.settimeout(2)
|
||||
|
||||
self._seq = 0 # state of the sequence number generator
|
||||
self._requests = {} # waiting area for pending responses
|
||||
|
Loading…
Reference in New Issue
Block a user