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>
Tue, 9 Mar 2021 16:58:02 +0000 (17:58 +0100)
commit4c48edba4f45bb78f41af7d79d3c176710fe6a90
treee8cda78e7f593b73702bcca4e725a3a329cdc7ed
parent5a1c7280a94a352009f4dbf86581efcbfc6fc296
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.
src/ssl_sock.c