mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Allow more time for connect than for normal reads.
This commit is contained in:
parent
77393f83ad
commit
e65dcaab86
@ -121,11 +121,12 @@ class SocketDriver(drivers.IrcDriver):
|
||||
def reconnect(self):
|
||||
#debug.methodNamePrintf(self, 'reconnect')
|
||||
self.conn = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
||||
self.conn.settimeout(conf.poll)
|
||||
self.conn.settimeout(conf.poll*10) # Allow more time for connect.
|
||||
if self.reconnectWaitsIndex < len(self.reconnectWaits)-1:
|
||||
self.reconnectWaitsIndex += 1
|
||||
try:
|
||||
self.conn.connect(self.server)
|
||||
self.conn.settimeout(conf.poll)
|
||||
except socket.error, e:
|
||||
if e.args[0] != 115:
|
||||
debug.msg('Error connecting to %s: %s' % (self.server, e))
|
||||
|
Loading…
Reference in New Issue
Block a user