Skip to content

Stream Disconnects Too Soon - Increase Heartbeat Wait #64

Closed
@cschwalm

Description

@cschwalm

Prerequisites

  • [ X] Put an X between the brackets on this line if you have done all of the
    following:

Description

Twitter streaming consistently disconnects at the 21 to 22 second mark depending on lag. It seems they have adjusted their heartbeat length to be slower. Please adjust the hardcoded amount to 30 seconds. There is a referenced open PR that allows for it to be adjustable.

See: #63

Steps to Reproduce

  1. Testing on AWS has shown repeated disconnects. Running it locally with breakpoints confirms the 20 second timer occurs too quickly causing the stream to think it is disconnected.

Expected behavior:

The stream to stay open. It is closing before it receives the heartbeat.

Actual behavior:

The stream closes too early.

Reproduces how often:

It depends on the time of day. It seems Twitter has extended their heartbeat length to exactly 20 seconds. Any lag causes a disconnect.

Versions

v1.0.7

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions