BytesClub / serverX

A HTTP/HTTPS Web Server Handler by (C) Bytes Club
Other
3 stars 3 forks source link

Support keep-alive connections #20

Open rubencm opened 6 years ago

rubencm commented 6 years ago

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.