]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: mworker: set the iocb of the socketpair without using fd_insert()
authorWilliam Lallemand <wlallemand@haproxy.org>
Mon, 4 Jul 2022 22:55:09 +0000 (00:55 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 5 Jul 2022 03:18:51 +0000 (05:18 +0200)
commit34aae2fd1293872345056a32dec8047a67c3d852
tree548f6882fd9243079a572d770451a13a6a0cd340
parentcfba1f93af4a6570b700bf4538b078e13bb65249
MEDIUM: mworker: set the iocb of the socketpair without using fd_insert()

The worker was previously changing the iocb of the socketpair in the
worker by mworker_accept_wrapper(). However, it was done using
fd_insert() instead of changing directly the callback in the
fdtab[].iocb pointer.

This patch cleans up this by part by removing fd_insert().

It also stops setting tid_bit on the thread mask, the socketpair will be
handled by any thread from now.
src/mworker.c