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

wasm: QDataStream not working with sockets

    XMLWordPrintable

Details

    • WebAssembly

    Description

      Taking into account the changes to enable socket use in wasm:

      https://codereview.qt-project.org/c/qt/qtbase/+/269904

      https://codereview.qt-project.org/c/qt/qtbase/+/272693

       

      QDataStream is not returning data using the fortuneclient or blockingfortuneclient example apps.

      Issue in QString QDataStream &operator>>

      in >> bytes; results in ReadPastEnd, as it is trying to read more data than the buffer actually has ( 1131375984 as opposed to 56)

       

      so, the buffer contains 56 bytes, it reads 4, then tries to read 1131375984, gets 52, and then fails.

       

      Attachments

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

        Activity

          People

            lpotter Lorn Potter
            lpotter Lorn Potter
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes