problems with POST data

Manlio Perillo manlio_perillo at libero.it
Sat Oct 20 17:25:21 MSD 2007


I'm testing mod_wsgi with Apache Bench, using a POST command, but there 
is something wrong.



Here is the log:
  *1 http process request line
  *1 http request line: "POST /wsgi-echo/ HTTP/1.0"
  *1 http uri: "/wsgi-echo/"
  *1 http args: ""
  *1 http exten: ""
  *1 http process request header line
  *1 http header: "User-Agent: ApacheBench/2.0.40-dev"
  *1 http header: "Host: localhost:1234"
  *1 http header: "Accept: */*"
  *1 http header: "Content-length: 467001"
  *1 http header: "Content-type: text/plain"
  *1 http header done
  *1 generic phase: 0
  *1 http script value: ""
  *1 http script set var
  *1 http script var
  *1 http script if
  *1 http script if: false
  *1 find location for "/wsgi-echo/"
  *1 find location: "/"
  *1 find location: "/wsgi-2/"
  *1 find location: "/wsgi-broken-reference/"
  *1 find location: "/wsgi-buffer/"
  *1 find location: "/wsgi-counter-context/"
  *1 find location: "/wsgi-counter-global/"
  *1 find location: "/wsgi-counter/"
  *1 find location: "/wsgi-echo/"
  *1 find location: "/wsgi-file/"
  *1 using configuration "/wsgi-echo/"
  *1 http cl:467001 max:4194304
  *1 generic phase: 2
  *1 post rewrite phase: 3
  *1 generic phase: 4
  *1 access phase: 5
  *1 access phase: 6
  *1 post access phase: 7
  *1 http client request body preread 874
  *1 http read client request body
  *1 http client request body recv 8192
  *1 http client request body recv 8192
  *1 http client request body recv 8192
  *1 http client request body recv 8192
  *1 http client request body recv 8192
  *1 http client request body recv 8192
  *1 http client request body recv 8192
  *1 http client request body recv 8192
  *1 http client request body recv 8192
  *1 http client request body recv 7168
  *1 http client request body rest 385231
  *1 http client request body recv -2
  *1 http client request body rest 385231
  *1 http read client request body
  *1 http client request body recv 0
  *1 client closed prematurely connection, client: 127.0.0.1, server: 
localhost, URL: "/wsgi-echo/", host: "localhost:1234"



What's the problem?
There is a strange recv: -2

I have also tried with a normal nginx installation, and the problem is 
still here.

I'm using nginx 0.5.31.



Thanks   Manlio Perillo





More information about the nginx mailing list