]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: session: mark the handshake as complete earlier
authorWilly Tarreau <w@1wt.eu>
Mon, 5 Nov 2012 23:14:25 +0000 (00:14 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 9 Nov 2012 21:09:08 +0000 (22:09 +0100)
commit815f5ecffa3acfe87eb4e62c085ca49b4057fe5b
treeac0af93db2e2642ce4f27b6cf2b79a301c4980ab
parent798f4325fa085556bbb7a57b332a5eeab1e6bbd0
BUG/MINOR: session: mark the handshake as complete earlier

There is a small waste of CPU cycles when no handshake is required on an
accepted connection, because we had to perform one call to conn_fd_handler()
to mark the connection CONNECTED and to call process_session() again to say
that nothing happened.

By marking the connection CONNECTED when there is no pending handshake, we
avoid this extra call to process_session().
src/session.c