Right now, when a request is served, the socket and the thread is closed.
The server shouldn't close the connection until it receives a Connection: Close header.
Also some kind of keep-alive-timeout should be implemented, so if the client doesn't close connection, the server should close it automatically instead of keep waiting.
Right now, when a request is served, the socket and the thread is closed. The server shouldn't close the connection until it receives a Connection: Close header. Also some kind of keep-alive-timeout should be implemented, so if the client doesn't close connection, the server should close it automatically instead of keep waiting.