Server event-handlerDetails » History » Revision 15
Revision 14 (radzio, 2012-08-11 10:42) → Revision 15/16 (gstrauss, 2020-06-01 14:48)
h1. server.event-handler Sets the event handler. *Default:* select the most advanced event handler supported by lighttpd that is available on the system On Linux: epoll On *BSD: kqueue @poll@ h3. Available event handlers: |_.OS |_.Method |_.Config value | |all |select |@select@ | |Unix |poll |@poll@ | |Linux 2.4+ |rt-signals|@linux-rtsig@ | |Linux 2.6+ |epoll |@linux-sysepoll@ | |Solaris |/dev/poll |@solaris-devpoll@ | |FreeBSD, ...|kqueue |@freebsd-kqueue@ | |NetBSD |kqueue |@kqueue@ | |N/A |libev |@libev@ | h4. Notes * @libev@ requires lighty to be compiled @--with-libev@ (available since 1.4.27) but libev is no longer recommended. Prefer the native event handlers supported by lighttpd (e.g. on Linux: epoll, on *BSD: kqueue) h3. Example <pre>server.event-handler = "kqueue"</pre> h3. Caveats * @linux-rtsig@ may interfere with Perl-based CGI. * @freebsd-kqueue@ and @poll@ on OS X 10.5 (Leopard) seem buggy. Use @select@ or @libev@ instead. h3. See Also * [[lighttpd:Docs_Performance#Event-Handlers|Performance and event handlers]]