connection: Enable pings by default with some really large timeouts

This commit is contained in:
Oleksii Shevchuk 2019-11-02 09:26:35 +02:00
parent 91b893c467
commit bc55f17759
1 changed files with 4 additions and 4 deletions

View File

@ -248,9 +248,9 @@ class PupyConnection(Connection):
self._sync_raw_exceptions = {}
self._last_recv = time.time()
self._ping = False
self._ping_timeout = 30
self._serve_timeout = 10
self._ping = True
self._ping_timeout = 60
self._serve_timeout = 600
self._last_ping = None
self._default_serve_timeout = 5
self._queue = SyncRequestDispatchQueue.get_queue()
@ -640,7 +640,7 @@ class PupyConnection(Connection):
timeout = mintimeout
if __debug__:
logger.debug('Serve(%s): start / timeout = %s / interval = %s / ping = %s / %s',
logger.debug('Serve(%s): start / timeout = %s / interval = %s / ping timeout = %s / %s',
self, timeout, interval, ping_timeout, self._last_ping)
data = self._recv(timeout, wait_for_lock=False)