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

QSocketNotifier should use full assignable range for socket messages

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Out of scope
    • Icon: Not Evaluated Not Evaluated
    • Some future release
    • 4.0.1
    • Core: I/O
    • None

      QSocketNotifier uses single message number (WM_USER) for all socket notification messages under Windows. If an application has lots of sockets with short life times, it is possible that a socket number gets recycled while the Windows event queue still has messages for the old socket.

      This scenario could be fixed by using the full user assignable range for socket messages, by incrementing the message number every time a new socket is registered via WSAAsyncSelect and by comparing incoming messages against the last registered WSAAsyncSelect message number. This may leave an application thinking that a disconnected socket is connected which causes serious problems.

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

            stormols Marius Storm-Olsen
            jabarron Jason Barron
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes