diff options
-rwxr-xr-x | jobs/TCPServerChecker.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/jobs/TCPServerChecker.py b/jobs/TCPServerChecker.py index eaf6704..78ae1ac 100755 --- a/jobs/TCPServerChecker.py +++ b/jobs/TCPServerChecker.py @@ -31,6 +31,7 @@ class TCPServerChecker(JobSpawner.JobSpawner): def execute(self):
try:
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
+ s.settimeout(5)
s.connect((self.ip, self.port))
s.close()
return True
|