CLEANUP: sock: always perform last connection updates before wakeup
authorWilly Tarreau <w@1wt.eu>
Thu, 2 Mar 2023 14:07:51 +0000 (15:07 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 8 Mar 2023 15:07:32 +0000 (16:07 +0100)
commit9b773ec118cd1e96381d74f93f5da6f4d62c7a1d
treef35196be677e8ed74fef9790c6eadf555125bcd8
parent677c006c5c66db1b421eaac81926407e7ec686da
CLEANUP: sock: always perform last connection updates before wakeup

Normally the task_wakeup() in sock_conn_io_cb() is expected to
happen on the same thread the FD is attached to. But due to the
way the code was arranged in the past (with synchronous callbacks)
we continue to update connections after the wakeup, which always
makes the reader have to think deeply whether it's possible or not
to call another thread there. Let's just move the tasklet_wakeup()
at the end to make sure there's no problem with that.
src/sock.c