plans for chunked encoding

Maxim Dounin mdounin at mdounin.ru
Fri Nov 23 20:45:17 UTC 2012


Hello!

On Fri, Nov 23, 2012 at 10:19:32AM +0100, Luka Perkov wrote:

[...]

> After applying your patches this is the result:

[...]

> 2012/11/23 10:14:15 [debug] 28084#0: *1 http client request body preread 7
> 2012/11/23 10:14:15 [debug] 28084#0: *1 http request body chunked filter
> 2012/11/23 10:14:15 [debug] 28084#0: *1 http body chunked buf t:1 f:0 000000000162BAE0, pos 000000000162BB77, size: 7 file: 0, size: 0
> 2012/11/23 10:14:15 [debug] 28084#0: *1 http chunked byte: 0D s:0
> 2012/11/23 10:14:15 [error] 28084#0: *1 client sent invalid chunked body, client: 127.0.0.1, server: , request: "POST / HTTP/1.1", host: "127.0.0.1"
> 2012/11/23 10:14:15 [debug] 28084#0: *1 http finalize request: 400, "/?" a:1, c:1
> 2012/11/23 10:14:15 [debug] 28084#0: *1 http special response: 400, "/?"
> 2012/11/23 10:14:15 [debug] 28084#0: *1 HTTP/1.1 400 Bad Request

This log is from reading request body (in contrast to discarding 
request body discussed previously), and 400 Bad Request is 
perfectly correct result as request is indeed bad as previously 
discussed.

[...]

-- 
Maxim Dounin
http://nginx.com/support.html



More information about the nginx-devel mailing list