vcl: fix vcl issue in multi-thread-workers mode 02/41502/5
authorMohamed Feroz <[email protected]>
Thu, 29 Aug 2024 08:04:02 +0000 (08:04 +0000)
committerFlorin Coras <[email protected]>
Wed, 4 Sep 2024 17:57:34 +0000 (17:57 +0000)
commit88c836c26719406484c95636e5a7933a29164cd7
tree4697ed30a9e1c07b90a7371448d6c407f11f2ba6
parent2f76b57280e76220ed7cad244059aa4f624371f4
vcl: fix vcl issue in multi-thread-workers mode

   In some multi-process/thread applications, a connection FD
is created on main process and actual data processing is done
in worker process. The main process does nothing. For such
applications, when multi-thread-workers is enabled, in current
VLS code, the session events are still enqueued to the VCL
worker corresponding to Main process. As the main process is
not dequeuing any event, application doesn't move forward.
This patch fixes this issue by enabling VCL worker
corresponding to the Worker process as listener of the session.

Type: improvement

Signed-off-by: Mohamed Feroz <[email protected]>
Change-Id: Ia7e6270c1acbce7feeafbf281c661285d63c3b22
src/vcl/vcl_locked.c