Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QSslSocket delay after IPv6 sends TCP reset
Forum Updated to NodeBB v4.3 + New Features

QSslSocket delay after IPv6 sends TCP reset

Scheduled Pinned Locked Moved Unsolved General and Desktop
3 Posts 2 Posters 230 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mr_don_rowe
    wrote on last edited by
    #1

    Kristall's gemini handler uses Qt's QSslSocket to communicate in TCP. When socket.connectToHostEncrypted(...) is called, both an IPv4 A DNS query and an IPv6 AAAA DNS query are issued. If both an IPv4 address and an IPv6 address are returned, the QSslSocket first attempts to connect to the server by sending a TCP packet with the SYN flag set. Ordinarily, the server responds with a TCP packet with the SYN and ACK flags set, and the connection is considered open for the rest of the request to complete.

    For certain hosts, the server instead responds over IPv6 with a packet that has the RST reset flag set indicating that the client should terminate the connection attempt. The QSslSocket then waits 30 seconds before retrying with the IPv4 address. Is there a way to remove this delay and immediately fall back to IPv4 if the server refuses IPv6?

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      Which version of Qt are you using ?
      On what OS ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      1
      • M Offline
        M Offline
        mr_don_rowe
        wrote on last edited by
        #3

        Hello! I'm using Qt 5.15.0 on macOS 10.14.6.

        1 Reply Last reply
        0

        • Login

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • Users
        • Groups
        • Search
        • Get Qt Extensions
        • Unsolved