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

QLocalSocket emits a readyRead on write()

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.0.0 Beta 2
    • 5.0.0 Beta 1
    • Network: Sockets
    • None
    • 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

            jbornema Joerg Bornemann
            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