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

Try connections twice in case of timeout

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P5: Not important
    • Resolution: Unresolved
    • Affects Version/s: 5.11.3
    • Fix Version/s: None
    • Component/s: Network: Sockets
    • Labels:
      None
    • Platform/s:
      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

            Assignee:
            tpochep Timur Pocheptsov
            Reporter:
            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