Skip to content

fix: disable websocket compression for startup logs in Safari #8087

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

Merged
merged 4 commits into from
Jun 20, 2023

Conversation

mafredri
Copy link
Member

This PR fixes startup log streaming in Safari and supercedes #8070.

I suspect the problem lies in WebSocket message fragmentation when using compression and the client is Safari. However, I have not investigated in-depth what's wrong and as such, did not speculate further.

For instance, I did observe the following oddity in nhooyr/websocket: https://github.com/nhooyr/websocket/blob/14fb98eba64eeb5e9d06a88b98c47ae924ac82b4/accept.go#L242-L244

UA parsing is done client-side mainly because I didn't find any satisfactory and recently updated libraries for UA parsing in Go.

Here are a few possibly related links:

Copy link
Member

@mtojek mtojek left a comment

Choose a reason for hiding this comment

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

LGTM 👍 left one nit-pick

Copy link
Collaborator

@BrunoQuaresma BrunoQuaresma left a comment

Choose a reason for hiding this comment

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

FE is good!

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.

3 participants