On Fri, 17 Feb 2012 12:30:08 +0100
"Roberto De Ioris" <[email protected]> wrote:

> --protocol was the 0.9.8 only way to trigger the http mode.
> 
> Currently uWSGI supports various protocol out-of-the-box
> 
> Use --http-socket :port instead of --socket :port (and remove the
> --protocol directive)
> 
> Pay attention to --remap-modifier, it works the opposite:
> 
> --remap-modifier 5:0
> 
> In addition to this, you should move to 1.0.3 as in 1.0.2 there was a
> bug with --http-socket post handling (or even better, if you are only
> doing tests, to 1.1 as its perl plugin has been greetly improved)

That works as expected (version 1.0.4):

$ /usr/local/booking-perl/5.8.5/sbin/uwsgi --http-socket :5000
--remap-modifier 5:0 --psgi test.psgi

$ telnet 127.0.0.1 5000
Trying 127.0.0.1...
Connected to 127.0.0.1.
Escape character is '^]'.
GET /

HTTP/1.1 200 OK
Content-Type: text/plain

Hello
Connection closed by foreign host.

Thank you Roberto.

Marcin
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi

Reply via email to