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

Try connections twice in case of timeout

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P5: Not important
    • None
    • 5.11.3
    • Network: Sockets
    • None
    • Linux/X11

    Description

      It's not really a bug but a feature.

      When a connection timeout, a second attempt is made.
      https://github.com/qt/qtbase/blob/5.11/src/network/socket/qabstractsocket.cpp#L1035

      Can someone explain to me the reason ?
      This code exists in all versions of Qt5 and Qt4.

      If the application has its own timeout which is less than the timeout of the QNAM connection, I notice that I must delete the QNAM to abort its new attempt.
      Is there a way to abort the QNAM connection without deleting the object ?

      Attachments

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

        Activity

          People

            tpochep Timur Pocheptsov
            romuald Romuald DELAVERGNE
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes