Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set end range in content stream if undefined #1317

Merged
merged 1 commit into from
Mar 17, 2021

Conversation

dmanjunath
Copy link
Contributor

Description

We observed a sinister bug in Chrome when trying to stream a track from a content node behind a GCP load balancer. Other browsers and infrastructure worked fine, but Chrome would fail to stream.

The cause of this is that GCP LBs would send range 0- so the end is not set. When we set the headers, this header res.set('Content-Length', end - start + 1) would be incorrect because end is an invalid value. I just set end to a valid value so all calculations should be correct.

Tests

Hotfixed this tag on a stage node behind a GCP load balancer and the track streams.

@dmanjunath dmanjunath marked this pull request as ready for review March 17, 2021 13:37
Copy link
Member

@raymondjacobson raymondjacobson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TY

@dmanjunath dmanjunath merged commit 24ce49b into master Mar 17, 2021
@dmanjunath dmanjunath deleted the dm-aud-435-gcp-chrome-stream-hotfix branch March 17, 2021 17:35
@AudiusProject AudiusProject deleted a comment from linear bot Sep 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants