MAJOR: http: add the keep-alive transition on the server side
authorWilly Tarreau <w@1wt.eu>
Sun, 15 Dec 2013 09:25:42 +0000 (10:25 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 16 Dec 2013 01:23:54 +0000 (02:23 +0100)
commit4213a11df963b3802e7a1496a100dd95a53a7de1
treea4990ed89043e02dc3574e73587867d6214ef407
parentb490b4e5ad7e0cbee085f72b2ea2ed1cbeb5ee07
MAJOR: http: add the keep-alive transition on the server side

When a connection to the server is complete, if the transaction
requests keep-alive mode, we don't shut the connection and we just
reinitialize the stream interface in order to be able to reuse the
connection afterwards.

Note that the server connection count is decremented, just like the
backend's, and that we still try to wake up waiters. But that makes
sense considering that we'll eventually be able to immediately pass
idle connections to waiters.
src/proto_http.c