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

QML: inconsistency with the XMLHttpRequest interface when multiple open/close sequence is attempted to a server that pumps data stream.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.4.1
    • None
    • Windows 7

    Description

      QML is observed to have some inconsistency with the XMLHttpRequest interface when the multiple open/close sequence is attempted to the server that pumps data stream.
      The connections are not closed by QML even after invoking abort() on the XHR instance. This results in eventually having multiple open sockets that collects data and new Open() requests does not yield results.

      The abort() call should not be waiting for the Server to finish or close the connection.

      The attached application can reproduce the issue with XMLHttpRequest interface.

      Test Setup:

      1. Need a server that pumps data stream. For example, a server that pumps W3C Server-Sent Events could be used - https://simpl.info/eventsource/index.php
        • Custom URL's can be configured in "main.qml"
      2. Run the attached application
      3. Click on the Enable/Disable buttons to Open/Close XHR instances respectively (need to repeat quickly few times)

      Expected:

      The application continues to display data from Server

      Observation:

      After few repeats of step-3, the application no more receives data.

      Attachments

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

        Activity

          People

            Unassigned Unassigned
            ncv-dev Nishanth
            Votes:
            6 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes