diff options
author | Simon Rettberg | 2016-02-08 15:07:07 +0100 |
---|---|---|
committer | Simon Rettberg | 2016-02-08 15:07:07 +0100 |
commit | 0c2b1dd8a5290f8b7b03a7fce77e9a57d709c7a7 (patch) | |
tree | 6512c86304307aa01e408f779080ead44c0b0f4f /src/client/vnc/vncwindow.cpp | |
parent | [client] Retry VNC connection up to 5 times (diff) | |
download | pvs2-0c2b1dd8a5290f8b7b03a7fce77e9a57d709c7a7.tar.gz pvs2-0c2b1dd8a5290f8b7b03a7fce77e9a57d709c7a7.tar.xz pvs2-0c2b1dd8a5290f8b7b03a7fce77e9a57d709c7a7.zip |
[client] Increase vnc client connect timeout to account for large pools of clients
Diffstat (limited to 'src/client/vnc/vncwindow.cpp')
-rw-r--r-- | src/client/vnc/vncwindow.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/client/vnc/vncwindow.cpp b/src/client/vnc/vncwindow.cpp index ff7c5d4..53877e1 100644 --- a/src/client/vnc/vncwindow.cpp +++ b/src/client/vnc/vncwindow.cpp @@ -124,7 +124,7 @@ void VncWindow::open(const QString& host, int port, const QString& passwd, bool this->show(); _vncWorker->setTargetSize(this->size()); - _tcpTimeoutTimer = startTimer(4000); + _tcpTimeoutTimer = startTimer(10000); _vncWorker->start(QThread::LowPriority); } @@ -170,6 +170,10 @@ void VncWindow::onUpdateImage(const int x, const int y, const int w, const int h */ void VncWindow::onProjectionStarted() { + if (_tcpTimeoutTimer != 0) { + killTimer(_tcpTimeoutTimer); + _tcpTimeoutTimer = 0; + } emit running(true, _clientId); _redrawTimer = startTimer(3000); } |