cerver
cerver copied to clipboard
In HTTP 1.1, all connections are considered persistent unless declared otherwise
https://github.com/roecrew/cerver/blob/2bee9b0ca1fbe67bd82500c07e61d8db8a7cdaf4/main.c#L214
Your code assumes a client did not request a connection to be closed, as it always sends keep-alive headers.
Now it's the opposite. All are considered closed and keep-alive is ignored.