Holy shit don't have such a short timeout or DDoS the server

This commit is contained in:
Kiooeht 2011-09-28 16:18:44 -07:00
parent e1b1f97e9c
commit e95c560591
2 changed files with 2 additions and 2 deletions

2
irc.py
View file

@ -30,7 +30,7 @@ class PesterIRC(QtCore.QThread):
def IRCConnect(self): def IRCConnect(self):
server = self.config.server() server = self.config.server()
port = self.config.port() port = self.config.port()
self.cli = IRCClient(PesterHandler, host=server, port=int(port), nick=self.mainwindow.profile().handle, real_name='pcc31', blocking=True, timeout=15) self.cli = IRCClient(PesterHandler, host=server, port=int(port), nick=self.mainwindow.profile().handle, real_name='pcc31', blocking=True, timeout=120)
self.cli.command_handler.parent = self self.cli.command_handler.parent = self
self.cli.command_handler.mainwindow = self.mainwindow self.cli.command_handler.mainwindow = self.mainwindow
self.cli.connect() self.cli.connect()

View file

@ -1122,7 +1122,7 @@ class PesterWindow(MovingWindow):
self.connect(self.pingtimer, QtCore.SIGNAL('timeout()'), self.connect(self.pingtimer, QtCore.SIGNAL('timeout()'),
self, QtCore.SLOT('checkPing()')) self, QtCore.SLOT('checkPing()'))
self.lastping = int(time()) self.lastping = int(time())
self.pingtimer.start(1000*10) self.pingtimer.start(1000*90)
@QtCore.pyqtSlot() @QtCore.pyqtSlot()
def mspacheck(self): def mspacheck(self):