From 36b6821c5e934980720748a95a50b83a04fcdfd3 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Thu, 18 Dec 2003 09:02:12 +0000 Subject: [PATCH] Set the default timeout for all sockets to 10 seconds. --- src/world.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/world.py b/src/world.py index 2347bf2f4..f2207c5d7 100644 --- a/src/world.py +++ b/src/world.py @@ -43,12 +43,15 @@ import sre import time import types import atexit +import socket import threading import log import conf import ircutils +socket.setdefaulttimeout(10) + startedAt = time.time() # Just in case it doesn't get set later. mainThread = threading.currentThread()