bug of discarding request body
shuxinyang.oss at gmail.com
Mon Nov 23 17:26:46 UTC 2015
Thank you very much for the comment, and sorry for my long previous
I guess you might misunderstand my previous email. Basically what I
try to say
is that the *OLD* bug (ticket/669 as you mentioned) is seen on the
1.9.7 release. The attached script can reproduce the problem by simply
The a.sh donwload the 1.9.7 release, build it *without* any 3rd
The problem is triggered by turning off unbuffered-uploading in
IIRC, when people report ticket/669, unbuffered-uploading was not
I guess we ngx_http_discard_request_body() should return NGX_AGAIN
instead NGX_OK if discarding body is in progress.
Also see the following interleaving response.
On 11/22/2015 05:24 PM, Maxim Dounin wrote:
> There is no problem in returning a response before reading the
> whole body.
> It looks like you've run into the old bug in the proxy module,
> which doesn't handle such responses in keepalive connections
> properly, see additional details here:
> Correct fix would be to stop nginx from re-using upstream
> connections where a request wasn't completely sent.
We cannot tell if it is complete or not if
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 1152 bytes
Desc: not available
More information about the nginx