profile
viewpoint

Ask questionshttp-socket does not support Keep-Alive

The Native HTTP Support does not support HTTP Keep-Alive. It's easy to test with uwsgi --http-socket :8080 and using telnet to send a valid HTTP/1.1 request; uwsgi will close the socket after sending the response.

A well-behaved HTTP/1.1 server will keep the socket open unless the client requests Connection: Close.

unbit/uwsgi

Answer questions jf

@jf From the source code: https://github.com/unbit/uwsgi/blob/uwsgi-2.0/plugins/http/http.c#L658

Excellent, thanks! I see it now. On another note, if anybody has any recommendations for another server to check out that has proper http keep-alive support, I'd be glad to hear it.

useful!

Related questions

RuntimeError at startup in Python 3.7.1+ when using `--py-call-osafterfork` option and logging module hot 1
Make pyuwsgi plugin python 3 compatible hot 1
In python3, uwsgi fails to respond a stream from BytesIO object. hot 1
pip install uwsgi==2.0.13.1 hot 1
source:https://uonfu.com/
Github User Rank List