Welcome! Log In Create A New Profile

Advanced

Re: Nginx answers too large requests with bad status

All files from this thread

File Name File Size   Posted by Date  
414_200.png 15.7 KB open | download B.R. 10/29/2012 Read message
Francis Daly
October 30, 2012 04:12PM
On Tue, Oct 30, 2012 at 10:08:38AM -0400, B.R. wrote:

Hi there,

> Alright, I got it now.
> That's because the protocol defines its version after the request
> address... which is already too long to be fully read.

Correct. Your script thought it made a HTTP/1.1 request, and expected
a HTTP/1.1 response.

nginx thought your script made a HTTP/0.9 request, and provided a
HTTP/0.9 response.

When something expects a HTTP/1.1 response and gets a HTTP/0.9 response,
bad things can happen unless it was written defensively.

> Thanks for your help!
> No bug in Nginx indeed :o)

I'd say not a bug, but an inconvenience.

I imagine that the cost to the HTTP/0.9 clients of seeing an extra

"""
HTTP/1.0 414 No

"""

at the start of this response is less than the cost to the HTTP/1.x
clients of not seeing those two lines.

But until someone who cares does the work, the cost to nginx of changing
the current behaviour is unknown, but certainly non-zero.

> I'll go set up better buffers,

Yes. The buffers should be set to include all requests that you wish
to accept. If your system uses particularly big requests, then you
need big buffers.

Cheers,

f
--
Francis Daly francis@daoine.org

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

Nginx answers too large requests with bad status Attachments

B.R. October 29, 2012 07:46PM

Re: Nginx answers too large requests with bad status

VBart October 29, 2012 08:08PM

Re: Nginx answers too large requests with bad status

Francis Daly October 29, 2012 08:14PM

Re: Nginx answers too large requests with bad status

B.R. October 29, 2012 09:00PM

Re: Nginx answers too large requests with bad status

B.R. October 29, 2012 09:12PM

Re: Nginx answers too large requests with bad status

VBart October 30, 2012 05:18AM

Re: Nginx answers too large requests with bad status

B.R. October 30, 2012 10:10AM

Re: Nginx answers too large requests with bad status

Francis Daly October 30, 2012 04:12PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 113
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