Skip to content

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?

@mklooss
Copy link

mklooss commented Mar 20, 2025

this fix does not work here in combination with varnish.
when varnish sends chunkes we get an error.
without this patch everything works as expected

@mklooss
Copy link

mklooss commented Apr 23, 2025

You have to disable buffering, then everything works as expected here - with varnish

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.

4 participants