BUG/MEDIUM: ssl: properly remove the TASK_HEAVY flag at end of handshake
authorWilly Tarreau <w@1wt.eu>
Tue, 9 Mar 2021 16:58:02 +0000 (17:58 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 10 Mar 2021 14:11:16 +0000 (15:11 +0100)
commita0c6da11ffe1150bbfb497a06cfde5b7a2fc5351
tree36481810a9eb5418ae0bf4d479f6b6c0f5ab65a8
parentb421f9d53fae198448b0130095cd8abbfcd57cc5
BUG/MEDIUM: ssl: properly remove the TASK_HEAVY flag at end of handshake

Emeric found that SSL+keepalive traffic had dropped quite a bit in the
recent changes, which could be bisected to recent commit 9205ab31d
("MINOR: ssl: mark the SSL handshake tasklet as heavy"). Indeed, a
first incarnation of this commit made use of the TASK_SELF_WAKING
flag but the last version directly used TASK_HEAVY, but it would still
continue to remove the already absent TASK_SELF_WAKING one instead of
TASK_HEAVY. As such, the SSL traffic remained processed with low
granularity.

No backport is needed as this is only 2.4.

(cherry picked from commit 4c48edba4f45bb78f41af7d79d3c176710fe6a90)
Signed-off-by: Willy Tarreau <w@1wt.eu>
src/ssl_sock.c