BUG/MINOR: checks: attempt clean shutw for SSL check
authorSteven Davidovitz <steved@squareup.com>
Wed, 8 Mar 2017 19:06:20 +0000 (11:06 -0800)
committerWilly Tarreau <w@1wt.eu>
Wed, 15 Mar 2017 10:41:25 +0000 (11:41 +0100)
commit544d481516024e13c25b5673b8d6b3b647898bae
tree41674ef420aac58fc96c75bc692891e6512d372e
parent614f8d7d56dc558d433f55d4c710599f61a87bab
BUG/MINOR: checks: attempt clean shutw for SSL check

Strict interpretation of TLS can cause SSL sessions to be thrown away
when the socket is shutdown without sending a "close notify", resulting
in each check to go through the complete handshake, eating more CPU on
the servers.

[wt: strictly speaking there's no guarantee that the close notify will
 be delivered, it's only best effort, but that may be enough to ensure
 that once at least one is received, next checks will be cheaper. This
 should be backported to 1.7 and possibly 1.6]
src/checks.c