From 73946400c32d1f7cfcd4672ab0ab3f563eb84f4e Mon Sep 17 00:00:00 2001 From: Martin Kleusberg Date: Sat, 18 Nov 2017 11:47:56 +0100 Subject: [PATCH] Work around a bug in Qt which causes high pings for Wifi connections See issue #1209. --- src/Application.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Application.cpp b/src/Application.cpp index 861cf68e..5b07774e 100644 --- a/src/Application.cpp +++ b/src/Application.cpp @@ -67,6 +67,9 @@ Application::Application(int& argc, char** argv) : QApplication::addLibraryPath(QApplication::applicationDirPath() + "/plugins"); #endif + // Work around a bug in QNetworkAccessManager which sporadically causes high pings for Wifi connections + // See https://bugreports.qt.io/browse/QTBUG-40332 + qputenv("QT_BEARER_POLL_TIMEOUT", QByteArray::number(INT_MAX)); // Parse command line QString fileToOpen;