commit | 815f5ecffa3acfe87eb4e62c085ca49b4057fe5b | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Tue Nov 06 00:14:25 2012 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Fri Nov 09 22:09:08 2012 +0100 |
tree | ac0af93db2e2642ce4f27b6cf2b79a301c4980ab | |
parent | 798f4325fa085556bbb7a57b332a5eeab1e6bbd0 [diff] |
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().