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

QTcpSocket applies system proxy where it does not have to

    XMLWordPrintable

Details

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

    Description

      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)

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes