Set the default timeout for all sockets to 10 seconds.

This commit is contained in:
Jeremy Fincher 2003-12-18 09:02:12 +00:00
parent e3661e3ba5
commit 36b6821c5e
1 changed files with 3 additions and 0 deletions

View File

@ -43,12 +43,15 @@ import sre
import time import time
import types import types
import atexit import atexit
import socket
import threading import threading
import log import log
import conf import conf
import ircutils import ircutils
socket.setdefaulttimeout(10)
startedAt = time.time() # Just in case it doesn't get set later. startedAt = time.time() # Just in case it doesn't get set later.
mainThread = threading.currentThread() mainThread = threading.currentThread()