Stefan Bühler
ebf8b11abb
[WIP] build systems cleanup
5 years ago
Glenn Strauss
7f82ddab3f
[core] remove fdevent_sched_run from fdevent_libev ( #2827 )
...
remove fdevent_sched_run from fdevent_libev.c
(redundant since commit 8ed588ce
)
x-ref:
"POST to mod_cgi sometimes hangs"
https://redmine.lighttpd.net/issues/2827
5 years ago
Glenn Strauss
6691eb377e
[core] add missing include of stdlib.h
5 years ago
Glenn Strauss
a53f662a30
[core] remove some unused header includes
...
remove exposure of stdio.h in buffer.h for print_backtrace(), now static
5 years ago
Glenn Strauss
b0c66266d9
[core] initialize globals at top of main()
...
initialize globals (including file-scoped static globals) at top of main
6 years ago
Glenn Strauss
eb37615a47
[core] fix fd leak when using libev ( fixes #2761 )
...
server.event-handler = "libev" would leak fds after the change made
in commit:40f16d5 since fdevent_libev.c:fdevent_libev_poll() always
returned 0 ready events after handling the event callbacks itself.
Therefore, fdevent_libev.c:fdevent_libev_poll() must also call
fdevent_sched_run() to handled fds scheduled to be closed.
This bug was introduced in 1.4.42.
(thx mittwinter for troubleshooting and identifying problem)
Note: server.event-handler = "libev" is no longer recommended.
lighttpd provides event handlers optimized for modern systems for most
platforms, and the limited way that lighttpd uses libev does not provide
any advantages over the OS-specific optimized event handlers.
x-ref:
"fd leak with libev in 1.4.42"
https://redmine.lighttpd.net/issues/2761
6 years ago
Glenn Strauss
86cd135b25
[core] fdevent_libev: workaround compiler warning
...
workaround compiler warning w/ gcc -Wstrict-aliasing=2 -fstrict-aliasing
6 years ago
Glenn Strauss
bd8b58cea5
[core] fdevent_libev: update use of ev_timer
6 years ago
Glenn Strauss
8abd06a7ff
consistent inclusion of config.h at top of files ( fixes #2073 )
...
From: Glenn Strauss <gstrauss@gluelogic.com>
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3113 152afb58-edef-0310-8abb-c4023f1b3aa9
6 years ago
Stefan Bühler
07dd0bd0a5
add force_assert() to enforce assertions as simple assert()s are disabled by -DNDEBUG ( fixes #2546 )
...
From: Stefan Bühler <stbuehler@web.de>
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2948 152afb58-edef-0310-8abb-c4023f1b3aa9
9 years ago
Stefan Bühler
3caf47ecd9
[fdevent-libev] fix type punning warnings
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2876 152afb58-edef-0310-8abb-c4023f1b3aa9
9 years ago
Stefan Bühler
79bcfab083
Move fdevent subsystem includes to implementation files to reduce conflicts ( fixes #2373 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2823 152afb58-edef-0310-8abb-c4023f1b3aa9
11 years ago
Stefan Bühler
7e5b0fe9ab
Rename fdevent_event_add to _set to reflect what the function does. Fix some handlers.
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2765 152afb58-edef-0310-8abb-c4023f1b3aa9
12 years ago
Stefan Bühler
f8eb52ebda
add libev fdevent handler: server.event-handler = "libev"
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2754 152afb58-edef-0310-8abb-c4023f1b3aa9
12 years ago