From: Michael Orlitzky Date: Wed, 18 Apr 2018 00:35:36 +0000 (-0400) Subject: untangle.py: use a configurable "timeout" for socket operations. X-Git-Tag: 0.0.8~3 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=a37d5cfa4fa2073e3cc3816ca5623b7a1b14d02f;hp=a37d5cfa4fa2073e3cc3816ca5623b7a1b14d02f;p=untangle-https-backup.git untangle.py: use a configurable "timeout" for socket operations. If an untangle host holds a connection open but sends no data, it can hang the backup process because we'll simply wait forever on that one host. To work around that problem, a new configurable "timeout" value has been added and is used in all open() calls. When the timeout is reached, a socket.timeout error is raised, terminating the backup process for that host (and all others, at the moment). ---