soc/tools/remove/client: set socket timeout to 5s

This commit is contained in:
Florent Kermarrec 2015-12-27 11:26:58 +01:00
parent 6ea65f957c
commit 219fbef26c

View file

@ -18,7 +18,7 @@ class RemoteClient(EtherboneIPC, CSRBuilder):
if hasattr(self, "socket"): if hasattr(self, "socket"):
return return
self.socket = socket.create_connection((self.host, self.port), 5.0) self.socket = socket.create_connection((self.host, self.port), 5.0)
self.socket.settimeout(1.0) self.socket.settimeout(5.0)
def close(self): def close(self):
if not hasattr(self, "socket"): if not hasattr(self, "socket"):