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
1 changed files with 1 additions and 1 deletions

View File

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