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

Disable response buffering for /admin/logs #197

Merged
merged 1 commit into from
Dec 5, 2023
Merged

Conversation

fredrikekre
Copy link
Member

This patch disables buffering for the streaming endpoint /admin/logs by setting the special nginx proxy response header X-Accel-Buffering to "no". Even though the default buffering settings seems to work fairly well without too many buffer hiccups it is recommended to disable buffering for this type of streaming endpoints.

As an alternative, buffering can be disabled in the nginx config by introducing a new /admin/logs location block, but since the scope here is very narrow it seems much simpler to just set the header.

This patch disables buffering for the streaming endpoint /admin/logs by
setting the special nginx proxy response header X-Accel-Buffering to
"no". Even though the default buffering settings seems to work fairly
well without too many buffer hiccups it is recommended to disable
buffering for this type of streaming endpoints.

As an alternative, buffering can be disabled in the nginx config by
introducing a new /admin/logs location block, but since the scope here
is very narrow it seems much simpler to just set the header.
@fredrikekre fredrikekre merged commit 38adc89 into master Dec 5, 2023
4 checks passed
@fredrikekre fredrikekre deleted the fe/buffering branch December 5, 2023 10:08
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.

1 participant