From 779c54872a7f8d6d29fbee661636626783730060 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Wed, 26 Oct 2016 16:37:22 +0200 Subject: [PATCH] IosTool: Don't restrict the number of pending connections Apparently a failed connection counts as "pending" for a while before it is finally removed. The QML profiler aggressively tries to connect with different timeouts and multiple sockets, so quite often there is such a failed connection which then prevents new connections from getting established. We already enforce the limit of only one successful connection via the SingleRelayServer subclass. Change-Id: I441e2ed898d28f04359a9976d5b25569b8447f3f Task-number: QTCREATORBUG-17141 Reviewed-by: Christian Stenger --- src/tools/iostool/main.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/tools/iostool/main.cpp b/src/tools/iostool/main.cpp index 76aa46efaba..605eff53e9d 100644 --- a/src/tools/iostool/main.cpp +++ b/src/tools/iostool/main.cpp @@ -407,7 +407,6 @@ RelayServer::~RelayServer() bool RelayServer::startServer(int port, bool ipv6) { QTC_CHECK(!m_server.isListening()); - m_server.setMaxPendingConnections(1); connect(&m_server, &QTcpServer::newConnection, this, &RelayServer::handleNewRelayConnection); quint16 portValue = static_cast(port); if (port < 0 || port > 0xFFFF)