{"action":"created","issue":{"url":"https://api.github.com/repos/unbit/uwsgi/issues/1097","labels_url":"https://api.github.com/repos/unbit/uwsgi/issues/1097/labels{/name}","comments_url":"https://api.github.com/repos/unbit/uwsgi/issues/1097/comments","events_url":"https://api.github.com/repos/unbit/uwsgi/issues/1097/events","html_url":"https://github.com/unbit/uwsgi/issues/1097","id":114494093,"number":1097,"title":"http-socket does not support Keep-Alive","user":{"login":"parasyte","id":456942,"avatar_url":"https://avatars.githubusercontent.com/u/456942?v=3","gravatar_id":"","url":"https://api.github.com/users/parasyte","html_url":"https://github.com/parasyte","followers_url":"https://api.github.com/users/parasyte/followers","following_url":"https://api.github.com/users/parasyte/following{/other_user}","gists_url":"https://api.github.com/users/parasyte/gists{/gist_id}","starred_url":"https://api.github.com/users/parasyte/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/parasyte/subscriptions","organizations_url":"https://api.github.com/users/parasyte/orgs","repos_url":"https://api.github.com/users/parasyte/repos","events_url":"https://api.github.com/users/parasyte/events{/privacy}","received_events_url":"https://api.github.com/users/parasyte/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/unbit/uwsgi/labels/documentation","name":"documentation","color":"d4c5f9"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-11-01T21:28:26Z","updated_at":"2015-11-06T22:54:28Z","closed_at":null,"body":"The [Native HTTP Support](http://uwsgi-docs.readthedocs.org/en/latest/HTTP.html) 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.\r\n\r\nA well-behaved HTTP/1.1 server will keep the socket open unless the client requests `Connection: Close`."},"comment":{"url":"https://api.github.com/repos/unbit/uwsgi/issues/comments/154568564","html_url":"https://github.com/unbit/uwsgi/issues/1097#issuecomment-154568564","issue_url":"https://api.github.com/repos/unbit/uwsgi/issues/1097","id":154568564,"user":{"login":"depaolim","id":443745,"avatar_url":"https://avatars.githubusercontent.com/u/443745?v=3","gravatar_id":"","url":"https://api.github.com/users/depaolim","html_url":"https://github.com/depaolim","followers_url":"https://api.github.com/users/depaolim/followers","following_url":"https://api.github.com/users/depaolim/following{/other_user}","gists_url":"https://api.github.com/users/depaolim/gists{/gist_id}","starred_url":"https://api.github.com/users/depaolim/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/depaolim/subscriptions","organizations_url":"https://api.github.com/users/depaolim/orgs","repos_url":"https://api.github.com/users/depaolim/repos","events_url":"https://api.github.com/users/depaolim/events{/privacy}","received_events_url":"https://api.github.com/users/depaolim/received_events","type":"User","site_admin":false},"created_at":"2015-11-06T22:54:28Z","updated_at":"2015-11-06T22:54:28Z","body":"Does this new option replace completely the old ones?\r\n\r\nI used\r\n```\r\n./uwsgi --http11-socket :8080 --gevent 100 --virtualenv env --module wsgi:app\r\n```\r\n\r\nand I obtained this:\r\n\r\n```\r\n$ telnet localhost 8080\r\nTrying 127.0.0.1...\r\nConnected to localhost.\r\nEscape character is '^]'.\r\nGET /ping HTTP/1.1\r\n\r\nHTTP/1.1 200 OK\r\nContent-Length: 19\r\nContent-Type: application/json\r\n\r\n{\"message\": \"pong\"}\r\n```\r\n\r\nwithout any \"Connection closed by foreign host.\"\r\n\r\nSo it seems to work as a \"Keep-alive\" without any need of the old options\r\n\r\n```\r\n--add-header \"Connection: Keep-Alive\" --http-keepalive --so-keepalive\r\n```\r\n\r\nDoes it mean that they are no more necessary?"}}