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

bugfix: fix zstd module infinite loop when upstream return content-length abnormal #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

drawing
Copy link
Contributor

@drawing drawing commented Jun 12, 2023

When the backend business returns a content-length exception, which the content-length is greater than the actual body size(for example, restart when the business return data is not completed), nginx will send a flush empty buffer, which will cause an infinite loop of zstd filter module.

for example, upstream return content:

HTTP/1.1 200 OK
Content-Type: application/json;charset=UTF-8
Content-Length: 2

a

@ThinkChaos
Copy link

Ran into this bug and can confirm this fix worked!

Would be nice to get it merged to save time for others :)

@melroy89
Copy link

Somebody merge it?

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