Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-59142

QTcpSocket waitForConnected fails with ConnectionRefusedError on localhost

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.9
    • 5.8.0
    • Network
    • None
    • Linux Desktop x86_64 Ubuntu 14.04
    •  c0157a9f035a27a3ba20cab0ca3ca1c6e78f0b14

    Description

      Hi,

      I have create a test application which connects to a Server on local host. If I execute the test application with Qt 5.8.0 the following code fails with AbstractSocket::ConnectionRefusedError.

      m_pSocket = new QTcpSocket(this);
      m_pSocket->connectToHost(host, 31234);
      bool bRet = m_pSocket->waitForConnected();
      

      In Qt5.7.1 and previous versions(5.5 and 5.6) the same code works fine.

      The Attachment contains a Unittest project.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              tpochep Timur Pocheptsov
              gylstorff Quirin Gylstorff
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes