varnish-cache icon indicating copy to clipboard operation
varnish-cache copied to clipboard

vefd: Thin wrapper around eventfd with pipe emulation

Open dridi opened this issue 7 months ago • 1 comments

We recently made change to the HTTP/2 implementation in Varnish Enterprise and would like to share this change. The new HTTP/2 architecture relies on a non-portable eventfd() notification system over a file descriptor, to enable polling of both the client socket and h2_req threads notifications simultaneously from the h2_sess thread.

We settled on this minimal API to capture our limited eventfd() usage and added a fallback to pipe() decided at configure time for systems without eventfd() support.

dridi avatar Jun 13 '25 13:06 dridi

bugwash consensus: wait for h2 patch which uses this to make a judgement if it can be avoided

nigoroll avatar Jun 16 '25 13:06 nigoroll