summaryrefslogtreecommitdiffstats
path: root/linhes/mythtv/0059-portchecker-speedup.patch
diff options
context:
space:
mode:
Diffstat (limited to 'linhes/mythtv/0059-portchecker-speedup.patch')
-rw-r--r--linhes/mythtv/0059-portchecker-speedup.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/linhes/mythtv/0059-portchecker-speedup.patch b/linhes/mythtv/0059-portchecker-speedup.patch
new file mode 100644
index 0000000..fba1abc
--- /dev/null
+++ b/linhes/mythtv/0059-portchecker-speedup.patch
@@ -0,0 +1,27 @@
+diff -Naur mythtv-master-20210518-gc8c226c9b4-old/mythtv/libs/libmythbase/portchecker.cpp mythtv-master-20210518-gc8c226c9b4-new/mythtv/libs/libmythbase/portchecker.cpp
+--- mythtv-master-20210518-gc8c226c9b4-old/mythtv/libs/libmythbase/portchecker.cpp 2021-05-18 16:11:42.736666605 +0200
++++ mythtv-master-20210518-gc8c226c9b4-new/mythtv/libs/libmythbase/portchecker.cpp 2021-05-18 16:11:45.799999938 +0200
+@@ -180,18 +180,18 @@
+ }
+ else
+ retryCount++;
+- // This retry count of 6 means 3 seconds of waiting for
++ // This retry count of 30 means 3 seconds of waiting for
+ // connection before aborting and starting a new connection attempt.
+- if (retryCount > 6)
++ if (retryCount > 30)
+ socket.abort();
+ processEvents();
+ // Check if user got impatient and canceled
+ if (m_cancelCheck)
+ break;
+- std::this_thread::sleep_for(500ms);
++ std::this_thread::sleep_for(100ms);
+ state = socket.state();
+- LOG(VB_GENERAL, LOG_DEBUG, LOC + QString("socket state %1")
+- .arg(state));
++ LOG(VB_GENERAL, LOG_DEBUG, LOC + QString("host %1 port %2 socket state %3")
++ .arg(host).arg(port).arg(state));
+ if (linkLocalOnly
+ && state == QAbstractSocket::UnconnectedState
+ && testedAll)