Welcome! Log In Create A New Profile

Advanced

Nginx warning - upstream sent more data.

April 17, 2021 11:59AM
I have a bunch of Nginx + PHP8.0-fpm installed in the north. When crawlers visit a page and the request contains the If-Modified-Since header, but the page has not changed, the site returns the "304 Not Modified" header. If the request protocol is HTTP / 2.0, everything works correctly, but if the request protocol is HTTP / 1.1, a warning appears in the Nginx logs:

[warn] 910 # 910: * 21961 upstream sent more data than specified in "Content-Length" header while reading upstream, client: 66.249.76.145, server: site.com, request: "GET /category/page-title.html HTTP / 1.1 ", upstream:" fastcgi: // unix: /var/www/php-fpm/12345.sock: ", host:"site.com"

The site engine does not give Nginx the Content-Length header for sure and there is no content. I tested this by making requests to the site with the If-Modified-Since header via CURL.

Why is Nginx showing this warning? Is this an Nginx bug?
Subject Author Posted

Nginx warning - upstream sent more data.

Trecolom April 17, 2021 11:59AM

Re: Nginx warning - upstream sent more data.

Trecolom April 18, 2021 04:06AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 271
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready