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

QLocalSocket::waitForReadyRead() should fetch events so that socket can become ready to read on linux

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Not Evaluated
    • None
    • 4.8.7
    • Network: Sockets
    • None

    Description

      For the following QLocalSocket scenario on linux:

      On the single process:
      1) Create QLocalServer, connect to server, write bytes to the socket (do not wait for bytes to be written)
      2) Then wait for newConnection() signal on the QLocalServer (using processEvents())
      3) Once the signal arrives call waitForReadyRead()

      This will timeout since it's possible that events which need to be processed so that data are available for read on the socket are not called. However this is not correct since the method should allow the actual data to be fetched to socket and made it to be ready for read. This should be apparent from the code. On Windows this works correctly.

      Attachments

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

        Activity

          People

            tpochep Timur Pocheptsov
            pavel_celba Pavel Celba
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes