Connection delay for QTcpSocket/QTcpServer



  • Hello, I wrote a simple application which create two QTcpServer(s) on two different ports.
    Then my own client application connects to both ports with two QTcpSocket(s).

    Client and server are directly connected via a LAN cable (no router or other stuff).
    Sometimes, one socket connects immediately, while the other takes several seconds. How is it possible? The both are running in the same process, on the same machine!



Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.