Welcome! Log In Create A New Profile

Advanced

some suggestions for clarifying client_max_body_size

Roger Pack
December 09, 2013 09:42AM
Hello. After installing a "fresh" 1.4.4 nginx with passenger the other
day, I had a few suggestions/feature requests for the default install:

by default the client_max_body_size can easily be exceeded. I think
this takes many people by surprise (at least it did for me) when small
uploads work but larger ones don't...

A couple of possible feature requests/suggestions, thus:

by default in nginx.conf list it, with its default (and possibly even an
explanation that this is the max POST upload size).

Maybe in the error log it could mention the config param, etc. like

*216 client intended to send too large body: 15004020 bytes >
client_max_body_size 1000000, client: 174.23.73.121 ...

(currently it says this)

2013/12/09 14:35:26 [error] 26537#0: *216 client intended to send too
large body: 15004020 bytes, client: 174.23.73.121 ...

Anyway something like that (or possibly even return a 413 instead of
dropping the connection, as long as it has free connections available at
all?) That one might not be viable, just debating it.

Anyway just throwing out some ideas there.
Thank you for an excellent product.
-roger-

--
Posted via http://www.ruby-forum.com/.

_______________________________________________
nginx mailing list
nginx@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx
Subject Author Posted

some suggestions for clarifying client_max_body_size

Roger Pack December 09, 2013 09:42AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 90
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready