vcl: fix libc epoll pwait starved 80/31680/3
authorwanghanlin <wanghanlin@corp.netease.com>
Thu, 18 Mar 2021 12:00:41 +0000 (20:00 +0800)
committerFlorin Coras <florin.coras@gmail.com>
Mon, 22 Mar 2021 14:23:06 +0000 (14:23 +0000)
commit8919fec5acb14d176b992b71108f9a912d98161e
treeb99473dbba9e6d91c1cc6285ec35c256373aa749
parent156158f06d725d9301940783dff8ccdcc4a01b9b
vcl: fix libc epoll pwait starved

We call vls_epoll_wait with 0 timeout to process unhandled_evts_vector
in ldp_epoll_pwait_eventfd. But vls_epoll_wait will then call
vppcom_epoll_wait_eventfd to process events in event queue. If there are
continuous events to be handled, then libc_epoll_pwait have no chance to be called.

Type: fix

Signed-off-by: wanghanlin <wanghanlin@corp.netease.com>
Change-Id: Ia4f61d0d438a3475bfde9f6715805274671d4e75
src/vcl/ldp.c
src/vcl/vppcom.c