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

QUdpSocket spurious readyRead signals when sending datagrams on Windows Desktop

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • 5.6.0 RC
    • 5.5.1
    • Network: Sockets
    • None
    • Windows Desktop.
    • 55f0343a99ffd920e2e14ba2bb7669d78224fe42

      Since the QTBUG-46552 fix a trivial UDP socket client has spurious readyRead signals when writeDatagram is called. Calling hasPendingDatagrams in the signal handler returns true but in fact an error WSAECONNREST is being detected. This code is not an error as documented by Micorsoft. It occurs because the datagram is written to a port on the local host where there is no server listening which is a perfectly valid scenario.

      Demo application attached.

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

            alex1973tr Alex Trotsenko
            bsomervi Bill Somerville
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes