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

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Won't Do
    • Affects Version/s: 4.8.7
    • Fix Version/s: None
    • Component/s: Network: Sockets
    • Labels:
      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

            Assignee:
            tpochep Timur Pocheptsov
            Reporter:
            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