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

Btw, "http-keepalive" option value is a number which specify timeout (in seconds) after which an inactive connection is closed by server. How can I configure this timeout when I will use "http11-socket"?

@marc1n what is your source for this? I see https://github.com/unbit/uwsgi/issues/2018, which seems to indicate that this is a boolean instead.

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