MEDIUM: connection: avoid calling handshakes when polling is required
authorWilly Tarreau <w@1wt.eu>
Sun, 2 Sep 2012 16:48:46 +0000 (18:48 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 3 Sep 2012 18:47:35 +0000 (20:47 +0200)
commitd9de7ca3d021516710f0abdb84b2ad70393e51e7
tree2433e4ab3cb9bc4284c8e9d1196c5bf20058a41a
parent56a77e5933528ae6ccb59c5ef1e03c2a6566adbe
MEDIUM: connection: avoid calling handshakes when polling is required

If a data handler suddenly switches to a handshake mode and detects the
need for polling in either direction, we don't want to loop again through
the handshake handlers because we know we won't be able to do anything.

Similarly, we don't want to call again the data handlers after a loop
through the handshake handlers if polling is required.

No performance change was observed, it might only be observed during
high rate SSL renegociation.
src/connection.c