]> gitweb.michael.orlitzky.com - untangle-https-backup.git/commit
untangle.py: use a configurable "timeout" for socket operations.
authorMichael Orlitzky <michael@orlitzky.com>
Wed, 18 Apr 2018 00:35:36 +0000 (20:35 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Wed, 18 Apr 2018 00:44:51 +0000 (20:44 -0400)
commita37d5cfa4fa2073e3cc3816ca5623b7a1b14d02f
treea58fe50df718b5d03ab9dfd2331076051d448c59
parent540020eeb5473c1aecff1b0393b9d38b3a2a990d
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).
src/untangle/untangle.py