summaryrefslogtreecommitdiff
path: root/src/fdevent.c
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2021-02-28 02:12:01 -0500
committerGlenn Strauss <gstrauss@gluelogic.com>2021-03-02 10:14:26 -0500
commitaf7c054b51d074d4e3307d38b587fe68e35fb197 (patch)
treef6465a3884efb3e077b1287ee40a996c23b85e34 /src/fdevent.c
parentbc3a2b4e4728f3e9e1a23eaf30eae2add5c0483e (diff)
downloadlighttpd-git-af7c054b51d074d4e3307d38b587fe68e35fb197.tar.gz
[core] ignore server.event-handler = "libev"
ignore server.event-handler = "libev" if lighttpd not built with libev (no longer an error) On most platforms, native event handling in lighttpd is more performant than the overhead of libev, which usually uses the same underlying OS system interface for event notification
Diffstat (limited to 'src/fdevent.c')
-rw-r--r--src/fdevent.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/fdevent.c b/src/fdevent.c
index 5369a154..256216e9 100644
--- a/src/fdevent.c
+++ b/src/fdevent.c
@@ -57,6 +57,11 @@ int fdevent_config(const char **event_handler_name, log_error_st *errh) {
const char * event_handler = *event_handler_name;
fdevent_handler_t et = FDEVENT_HANDLER_UNSET;
+#ifndef FDEVENT_USE_LIBEV
+ if (NULL != event_handler && 0 == strcmp(event_handler, "libev"))
+ event_handler = NULL;
+#endif
+
if (NULL == event_handler) {
/* choose a good default
*