From 18aabef729c950dbed52163908ffeeb48e0e56a9 Mon Sep 17 00:00:00 2001 From: Tom Ritter Date: Wed, 28 Dec 2016 14:22:11 -0500 Subject: Check for 200 status code and set server timeout to 10 --- jobs/TCPServerChecker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'jobs/TCPServerChecker.py') diff --git a/jobs/TCPServerChecker.py b/jobs/TCPServerChecker.py index 78ae1ac..4b5460c 100755 --- a/jobs/TCPServerChecker.py +++ b/jobs/TCPServerChecker.py @@ -31,7 +31,7 @@ class TCPServerChecker(JobSpawner.JobSpawner): def execute(self): try: s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) - s.settimeout(5) + s.settimeout(10) s.connect((self.ip, self.port)) s.close() return True -- cgit v1.2.3