Project

General

Profile

Actions

Feature #2021

closed

Better server.event-handler defaults

Added by Olaf-van-der-Spek over 14 years ago. Updated over 14 years ago.

Status:
Fixed
Priority:
Normal
Category:
core
Target version:
ASK QUESTIONS IN Forums:

Description

Could the server.event-handler default to a better option?
On Linux, this would be epoll. This should be easy to do at run-time.

Actions #1

Updated by stbuehler over 14 years ago

  • Target version changed from 1.4.24 to 1.4.x
Actions #2

Updated by Olaf-van-der-Spek over 14 years ago

  • % Done changed from 0 to 10
--- orig/lighttpd-1.4.23/src/configfile.c       2009-04-26 19:51:55.000000000 +0200
+++ lighttpd-1.4.23/src/configfile.c    2009-07-24 12:57:21.000000000 +0200
@@ -1135,15 +1135,15 @@
                 * - select works everywhere
                 * - linux-* are experimental
                 */
+#ifdef USE_LINUX_EPOLL
+               { FDEVENT_HANDLER_LINUX_SYSEPOLL, "linux-sysepoll" },
+#endif
 #ifdef USE_POLL
                { FDEVENT_HANDLER_POLL,           "poll" },
 #endif
 #ifdef USE_SELECT
                { FDEVENT_HANDLER_SELECT,         "select" },
 #endif
-#ifdef USE_LINUX_EPOLL
-               { FDEVENT_HANDLER_LINUX_SYSEPOLL, "linux-sysepoll" },
-#endif
 #ifdef USE_LINUX_SIGIO
                { FDEVENT_HANDLER_LINUX_RTSIG,    "linux-rtsig" },
 #endif

Hmm, redmine's diff parser seems broken...

Actions #3

Updated by stbuehler over 14 years ago

  • Status changed from New to Fixed
  • % Done changed from 10 to 100

Applied in changeset r2612.

Actions #4

Updated by stbuehler over 14 years ago

  • Target version changed from 1.4.x to 1.4.24
Actions

Also available in: Atom