-
Notifications
You must be signed in to change notification settings - Fork 64
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
Connection closes with a large file list on Nginx 1.5.3 and later #55
Comments
New server and the old problem. Now on the Ubuntu operating system. |
For reference:
|
The error was in our code and we forgot to close this issue. Someone for some reason sent header Content-Length. And this worked fine until nginx 1.5.3. |
We use mod_zip module. After setting up a new server (under FreeBSD) we've installed fresh nginx (1.10.1) and found that there's a limit for a number of rules. Also there's a limit on a total rules size. If the limit is exceeded, connection closes and nginx reports an error:
2016/06/08 17:41:33 [error] 82841#101370: *1646064 upstream prematurely closed connection while reading upstream, client: 10.118.254.242, server: , request: "GET /test.php HTTP/1.1", upstream: "http://176.xx.xx.xx:8092/test.php", host: "xxxxx.com".
Two examples:
If we add one more rule in any of these cases, connection closes with an error.
Could you give us a hint of a possible reason of this behaviour? What nginx settings may affect and fix it? Or it's an nginx's bug?
Everything worked fine with nginx 1.4.4.
mod_zip version is 1.1.6
Nginx config are the same for both versions.
...
server {
listen 176.xx.xx.xx:80;
...
location ~ /upltest/(.*) {
root /usr/home/test;
index index.html;
}
...
}
...
Rule example:
nginx's log
The text was updated successfully, but these errors were encountered: