From 7ddfddc56751d718220c75d3453fc96aa80d3199 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Fri, 28 Oct 2016 10:30:20 -0700 Subject: [PATCH] make the socket readyRead check fire after 2s of no packets --- libraries/networking/src/udt/Socket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/networking/src/udt/Socket.cpp b/libraries/networking/src/udt/Socket.cpp index fbf2a1c86a..0e7a5e102b 100644 --- a/libraries/networking/src/udt/Socket.cpp +++ b/libraries/networking/src/udt/Socket.cpp @@ -49,7 +49,7 @@ Socket::Socket(QObject* parent, bool shouldChangeSocketOptions) : connect(&_udpSocket, &QAbstractSocket::stateChanged, this, &Socket::handleStateChanged); // in order to help track down the zombie server bug, add a timer to check if we missed a readyRead - const int READY_READ_BACKUP_CHECK_MSECS = 10 * 1000; + const int READY_READ_BACKUP_CHECK_MSECS = 2 * 1000; connect(_readyReadBackupTimer, &QTimer::timeout, this, &Socket::checkForReadyReadBackup); _readyReadBackupTimer->start(READY_READ_BACKUP_CHECK_MSECS); }