Nginx may recieve data from Upstream Server even a request has not sent

2015-08-03 Thread Hagai Avrahami
est_connect(c) != NGX_OK) {ngx_http_upstream_next(r, u, NGX_HTTP_UPSTREAM_FT_ERROR);return;}* Please Advise Thanks Hagai Avrahami ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Re: Content-Length header with HEAD response

2013-05-29 Thread Hagai Avrahami
Hi I thought HEAD should behave as GET only in case of success after reading the RFC I understand it's should be the same on any response Thanks On Wed, May 29, 2013 at 3:10 PM, Maxim Dounin wrote: > Hello! > > On Wed, May 29, 2013 at 02:49:46PM +0300, Hagai Avrahami wrote: >

Content-Length header with HEAD response

2013-05-29 Thread Hagai Avrahami
ection: keep-alive ***No-Body** Please Advise Thanks Hagai Avrahami ___ nginx mailing list nginx@nginx.org http://mailman.nginx.org/mailman/listinfo/nginx

Fwd: client_max_body_size

2013-03-27 Thread Hagai Avrahami
"client intended to send too large body: %O bytes", r->headers_in.content_length_n); * ngx_connection_t* connection = r->connection; ngx_http_finalize_request(r, NGX_DONE); ngx_close_connection(connection);* return NGX_OK; } Is

client_max_body_size

2013-03-24 Thread Hagai Avrahami
Hi Is there any way to deny all requests with body? I know I can set set client_max_body_size to 1 (byte) But.. in that case Nginx reads all body request before finalizing the request. In case of requests with body as part of attack I would like to close the connection immediately without wasting