Hi,
It seems that using internal HTTP support + psgi keep-alive does not
work. Is this intentional or I do something wrong?
I am running the server as:
$ ./uwsgi --http-socket :8090 --http-keepalive --psgi ka.pl
where "ka.pl" is as simple as:
my $app = sub {
return [
200,
[ 'Content-Type' => 'text/plain', 'Content-Length' => '12' ],
[ "Keepalive?\015\012" ]
];
}
and testing it with:
$ curl -v http://localhost:8090/ http://localhost:8090/
I get:
* About to connect() to localhost port 8090 (#0)
* Trying 127.0.0.1... connected
* Connected to localhost (127.0.0.1) port 8090 (#0)
GET / HTTP/1.1
User-Agent: curl/7.21.7 (i686-redhat-linux-gnu) libcurl/7.21.7
OpenSSL/0.9.8b zlib/1.2.3 libidn/0.6.5 libssh2/1.2.7
Host: localhost:8090
Accept: */*
< HTTP/1.1 200 OK
< Content-Type: text/plain
< Content-Length: 12
<
Keepalive?
* Connection #0 to host localhost left intact
* Connection #0 seems to be dead!
* Closing connection #0
* About to connect() to localhost port 8090 (#0)
* Trying 127.0.0.1... connected
...
Adding header "Connection: keepl-alive" doesn't help (and according to
code it seems to be unnecessary anyway).
Any suggestions?
Thank you!
Best regards,
/Alexander
_______________________________________________
uWSGI mailing list
[email protected]
http://lists.unbit.it/cgi-bin/mailman/listinfo/uwsgi