Skip to content

Proxy buffers Transfer-Encoding: chunked responses and breaks streams #1185

@nLight

Description

@nLight

Hi friends!

We have a XmlHttpRequest that never finishes. We're using it as a stream parsing responseText on every onProgress event.

The problem is that we never get the last chunk as it would be sitting somewhere buffered. We can't really control the server behaviour here and I wonder if the buffer can be flushed after each chunk?

  • Operating System: Linux
  • Cypress Version: 3.1.3
  • Browser Version: all of them

Is this a Feature or Bug?

bug

Current behavior:

cypress waits a request to complete

Desired behavior:

Cypress should propagate onProgress events and update responseText accordingly

How to reproduce:

  • an endpoint with Transfer-Encoding: chunked that sends messages one after another and doesn't close throughout the session.
  • browser connection that reads those messages listening to onProgress

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions