BUG/MEDIUM: ssl: force a full GC in case of memory shortage
authorWilly Tarreau <w@1wt.eu>
Thu, 13 Nov 2014 12:48:58 +0000 (13:48 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 13 Nov 2014 12:48:58 +0000 (13:48 +0100)
commitfba03cdc5ac6e3ca318b34915596cbc0a0dacc55
treedd42e605718afc4821fce508eedc50e78205f237
parent5547615cdac377797ae351a2e024376dbf6d6963
BUG/MEDIUM: ssl: force a full GC in case of memory shortage

When memory becomes scarce and openssl refuses to allocate a new SSL
session, it is worth freeing the pools and trying again instead of
rejecting all incoming SSL connection. This can happen when some
memory usage limits have been assigned to the haproxy process using
-m or with ulimit -m/-v.

This is mostly an enhancement of previous fix and is worth backporting
to 1.5.
src/ssl_sock.c