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

Prevent spinning when progress is not being made. #100

Merged
merged 1 commit into from
Apr 16, 2020
Merged

Prevent spinning when progress is not being made. #100

merged 1 commit into from
Apr 16, 2020

Conversation

awused
Copy link
Contributor

@awused awused commented Apr 16, 2020

Fixes #80 at least for my examples.

@eustas
Copy link
Collaborator

eustas commented Apr 16, 2020

Hello. Thanks for the PR.

So, it will resolve the tight loop (when brotli waits for output buffer to be consumed, but the filter below does not make any progress).

But the question is - will nginx react as expected. IIRC, we already got problem with returning NGX_AGAIN... Will try to find what was it and update this comment soon.

@eustas
Copy link
Collaborator

eustas commented Apr 16, 2020

Is was about NGX_OK vs NGX_DONE.

LGTM. Will land the PR, but reopen the issue, to gather the feedback from other users.

Thanks again.

@eustas eustas merged commit bcceaab into google:master Apr 16, 2020
@HansVanEijsden
Copy link

Thanks for the progress! I'm pushing this to production now, and will let you know if the problem comes back. 👍🏻

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.

100% nginx usage
3 participants