mirror of
https://github.com/jlu5/PyLink.git
synced 2024-12-24 03:33:10 +01:00
Let's use a default pingfreq value that makes sense...
Change this from 30 seconds to 180. Even for semi-important servers, 30 seconds between PING requests is a bit overkill.
This commit is contained in:
parent
dc1d9602e9
commit
99d861861d
@ -94,7 +94,7 @@ class Irc():
|
||||
"""
|
||||
self.sid = self.serverdata["sid"]
|
||||
self.botdata = self.conf['bot']
|
||||
self.pingfreq = self.serverdata.get('pingfreq') or 30
|
||||
self.pingfreq = self.serverdata.get('pingfreq') or 180
|
||||
self.pingtimeout = self.pingfreq * 2
|
||||
|
||||
self.connected.clear()
|
||||
|
@ -111,9 +111,9 @@ servers:
|
||||
|
||||
# Sets ping frequency (i.e. how long we should wait between sending
|
||||
# pings to our uplink). When more than two consecutive pings are missed,
|
||||
# PyLink will disconnect with a ping timeout. This defaults to 30 if
|
||||
# PyLink will disconnect with a ping timeout. This defaults to 180 if
|
||||
# not set.
|
||||
pingfreq: 30
|
||||
pingfreq: 180
|
||||
|
||||
# Separator character (used by relay)
|
||||
separator: "/"
|
||||
|
Loading…
Reference in New Issue
Block a user