Writing an http server in c with connection persistence support
<p>When I read a request from a browser, the <strong>HTTP</strong> connection header always comes with a <code>Keep-Alive</code> value, so I kept the connection socket descriptor open after writing a response to the stream. I heard that this causes the client (browser) will reuse the same connection to send the next request.</p>

<p>But the client sends another <code>connect()</code> request to create a new connection for sending the next request.</p>

<p>Why do browsers send <code>keep-alive</code> option with every header?</p>