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

QLocalSocket emits a readyRead on write()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 5.0.0 Beta 1
    • Fix Version/s: 5.0.0 Beta 2
    • Component/s: Network: Sockets
    • Labels:
      None
    • Commits:
      94dc0c659425f091595dc77c03b9a94f446a65f8

      Description

      The QLocalSocket class is emitting a readyRead signal after writing to the socket. The amount read by readAll() is equal to the amount of data written, however, the data read is invalid. This appears to occur when a QLocalSocket connects to a server using connectToServer(QString) and then writes to stream.

      This is confirmed working correctly in 4.8.2, and not working in 5.0beta1.

      Attached is a simple program that demonstrates the issue.

        Attachments

        1. sockettest.h
          0.6 kB
        2. sockettest.cpp
          2 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            jbornema Joerg Bornemann
            Reporter:
            datkinson Dave Atkinson
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes