Skip to content

Event streaming not realtime #206

Description

@fengyehong

When I use event streaming and observe events I receive, I found events does not always arrive "realtime", usually the last message doesn't show up until the next batch of events.

I use wireshark to capture the traffic and found that marathon did send out events in real time, but requests just keeping holding the last message.

Then I did a little research and found that reqeusts.Response.iter_lines does not work in a realtime manner, using the default chunk_size.

See the issues under requests:
psf/requests#3577 (comment)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions