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

QTcpSocket applies system proxy where it does not have to

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.10.1
    • Network: Sockets
    • None
    • Windows

      When I try to connect to 192.168.2.71

      connectToHost( host, port );
      if ( !waitForConnected( connectionTimeout ) )
      {
          qDebug() << QAbstractSocket::error() << errorString();
          ...
      }
      

      I get an error:

      QAbstractSocket::UnsupportedSocketOperationError "The proxy type is invalid for this operation"

      While my proxy setting are:

      So proxy should not be applied as it's a local address + 192.168.2.* is in exceptions.

       

      Notes:

      1) disabling system proxy solves the issue

      2) setProxy( QNetworkProxy::NoProxy **) solves the problem

      3) connection to 127.0.0.1 does not have this issue (though it's the same computer as 192.168.2.71)

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

            tpochep Timur Pocheptsov
            LisandreL LisandreL
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes