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.cpp
          2 kB
          Dave Atkinson
        2. sockettest.h
          0.6 kB
          Dave Atkinson

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: