Stefan Bühler
55e1dc1825
[ssl/build] some minor fixes; fix compile without ssl, cleanup ssl config buffers
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2789 152afb58-edef-0310-8abb-c4023f1b3aa9
2011-04-24 16:02:55 +00:00
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
2010-08-17 09:54:42 +00:00
Stefan Bühler
743230643e
report libev handler in feature list/mod_status
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2755 152afb58-edef-0310-8abb-c4023f1b3aa9
2010-08-07 11:03:30 +00:00
Stefan Bühler
38f2d1ddd7
cleanup fdevent code, removed linux-rtsig handler, replaced some fprintf calls
...
* use log functions
* convert flags
* fix handler callback prototype
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2752 152afb58-edef-0310-8abb-c4023f1b3aa9
2010-08-06 21:57:15 +00:00
Stefan Bühler
a61e0bdde0
Fix two compiler warnings
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2732 152afb58-edef-0310-8abb-c4023f1b3aa9
2010-07-04 07:45:25 +00:00
Stefan Bühler
932b67bd2b
Fix linger close timeout handling, drop timeout to 5 seconds ( fixes #2086 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2669 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-10-19 13:26:01 +00:00
Stefan Bühler
b987643307
Add SSL Client Certificate verification ( #1288 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2654 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-10-14 18:19:19 +00:00
Stefan Bühler
22e8b456a9
Fix header inclusion order, always include "config.h" before any system header
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2624 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-10-11 14:31:42 +00:00
Stefan Bühler
d69683ddb5
Remember keep-alive-idle in separate variable ( fixes #1988 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2622 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-10-11 13:16:03 +00:00
Stefan Bühler
4df22f2a32
Fix issues found with clang analyzer
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2594 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-07-21 20:35:27 +00:00
Stefan Bühler
2ab8287e32
Fix FD_SETSIZE comparision warnings on FreeBSD
...
* And again, FreeBSD sucks... it defines FD_SETSIZE as an unsigned integer,
while every fd is signed.
This obviously breaks thinks like assert(fd < FD_SETSIZE);
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2570 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-07-10 16:16:11 +00:00
Stefan Bühler
fbdb305f8a
Add server.breakagelog, a "special" stderr ( fixes #1863 )
...
* The breakage-log simply replaces stderr (the old stderr is moved away if needed for errorlog),
and stderr isn't closed after forking.
It defaults to stderr if started with -n (no daemonize), otherwise it defaults to /dev/null.
It is _not_ reopened in log_error_cycle, as there may be many long running childs which have it
still open anyway. Use a pipe-logger with cycle-support if you need it.
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2550 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-06-21 17:25:39 +00:00
Stefan Bühler
7ad4792357
Add support for "real" entropy from /dev/[u]random ( fixes #1977 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2524 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-06-11 09:53:34 +00:00
Stefan Bühler
638ee6cad9
Add revision number to package version for svn/git checkouts
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2467 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-04-10 17:35:19 +00:00
Stefan Bühler
9c7cdb8011
Add proper SUID bit detection ( fixes #416 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2436 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-04-09 16:51:52 +00:00
Stefan Bühler
4533af7668
Fix segfault if siginfo_t* is NULL in sigaction handler ( fixes #1926 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2409 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-03-07 13:58:25 +00:00
Stefan Bühler
22bee5ad52
Silenced the annoying "request timed out" warning, enable with the "debug.log-timeouts" option ( fixes #1529 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2390 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-02-05 21:54:47 +00:00
Stefan Bühler
24d08807c5
Fix max-connection limit handling/100% cpu usage ( fixes #1436 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2387 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-02-05 10:53:24 +00:00
Stefan Bühler
cb91487c8d
Add option to ignore the "Expect: 100-continue" header instead of returning 417 Expectation failed ( closes #1017 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2385 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-02-04 15:16:29 +00:00
Stefan Bühler
4456b579b7
Use/enforce sane max-connection values ( fixes #1803 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2383 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-02-03 22:53:23 +00:00
Stefan Bühler
832ff277f2
Remove floating point math from server.c ( fixes #1402 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2381 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-02-03 21:02:18 +00:00
Stefan Bühler
22d8707ef2
Use struct copy instead of memcpy for volatile siginfo_t in server.c
...
Fixes "discards qualifiers" warning.
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2292 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-08-19 22:23:34 +00:00
Stefan Bühler
52861d77df
Replace buffer_{append,copy}_string with the _len variant where possible ( #1732 , thx crypt)
...
Replace BUFFER_{APPEND,COPY}_STRING_CONST with _len(b, CONST_STRL_LEN(x))
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2250 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-07-30 19:38:32 +00:00
Elan Ruusamäe
5fa895e8ec
- revert unwanted commit
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2193 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-07-14 14:33:06 +00:00
Elan Ruusamäe
ef95813dea
- merge spawn-fcgi changes from trunk (from @2191)
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2192 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-07-14 14:26:20 +00:00
Stefan Bühler
93e7167f84
Implement a clean way to open /dev/null and use it to close stdin/out/err in the needed places ( #624 )
...
- as stderr gets redirected to /dev/null before exec in childs, we cannot
write to the log afterwards, so disabled that log messages too.
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2163 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-04-29 20:59:39 +00:00
Stefan Bühler
fcce4c9cbb
Fix comment style (use /* */ instead of //)
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2151 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-04-23 13:10:41 +00:00
Stefan Bühler
796502e7af
r2087@chromobil: stefan | 2008-02-26 17:01:12 +0100
...
Fix #1562 and try re-fixing #372 : out of range access in fd array
- Bug is in original #372 fix [853]
- The re-fix for #372 is not tested:
the problem is that Solaris doesn't want to poll for maxfds (ulimit) events,
as at least one filedescriptor is used for the poll device.
So the solution is to just ask for one event less; the number of events
actually available is returned by the poll syscall, so it should work.
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2082 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-02-26 16:20:04 +00:00
Elan Ruusamäe
a18086bc35
- open log immediately after daemonizing, fixes SIGPIPEs on startup ( #165 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2049 152afb58-edef-0310-8abb-c4023f1b3aa9
2008-01-17 12:29:47 +00:00
Elan Ruusamäe
9ab9f176d2
- apply patches from #1384
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2020 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-11-10 16:12:55 +00:00
Jan Kneschke
e0629883a9
* fixed forwarding a SIGINT and SIGHUP when using max-workers ( #902 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1982 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-09-05 10:39:56 +00:00
Jan Kneschke
29fdd34abd
fixed compile error on IRIX 6.5.x on prctl()
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1980 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-09-02 19:48:47 +00:00
Jan Kneschke
1e1a8e5907
use HAVE_SYS_PRCTL_H as HAVE_PRCTL is not checked for
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1958 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-21 23:35:08 +00:00
Jan Kneschke
ef19bacae8
added sending UID and PID for SIGTERM and SIGINT to the logs
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1957 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-08-21 17:40:03 +00:00
Jan Kneschke
d12d86d777
if we open more connections than we define with ulimit we might run
...
into a assert() in fdevent.c, try to limit the number of opened
connections before hand
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1873 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-06-15 15:30:34 +00:00
Elan Ruusamäe
72ac4ece2e
- prevent wrong pidfile unlinking on graceful restart (patch by Chris Webb)
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1656 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-02-17 18:17:00 +00:00
Marcus Rückert
55a713a1a1
r1557@h2o: darix | 2007-01-14 10:55:33 +0100
...
- fix a crash for files with an mtime of 0
reported by cubiq on irc
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1519 152afb58-edef-0310-8abb-c4023f1b3aa9
2007-01-14 09:58:14 +00:00
Jan Kneschke
1398cb2e3e
fixed some allocations in the ssl-part before lighty exits to make valgrind happy
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1372 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-10-04 13:31:49 +00:00
Marcus Rückert
8cd1471cb3
- white space cleanup part 2 this time 1.4 ;)
...
i hope it helps with merging stuff back to 1.5
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1371 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-10-04 13:26:23 +00:00
Jan Kneschke
68033b8e62
merged [270] ( fixes #871 )
...
- call initgroups() in spawn-fcgi.c
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1368 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-10-04 07:36:10 +00:00
Jan Kneschke
dd0abe5aba
print 'lighttpd -p -f ...' to stdout instead of stderr
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1318 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-20 14:37:15 +00:00
Marcus Rückert
d9cb387859
- make the features output more portable
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1305 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-15 13:23:07 +00:00
Jan Kneschke
9076cbdf5c
if wait() gets interruped, don't increase the number of workers to start
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1301 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-15 12:01:29 +00:00
Marcus Rückert
27e3de6ca4
Remove unmaintained and not working pam code.
...
Most people would use pam auth with /etc/{passwd,shadow}.
This is a stupid idea anyway.
* src/server.c: Remove pam from the feature list (-V)
* src/http_auth.h, src/http_auth.c: Remove the pam code.
(merge of r1115:1116 from branches/lighttpd-merge-1.4.x/)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1288 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-07 14:21:17 +00:00
Marcus Rückert
657a024d53
- backport symlink patch in hard version to 1.4.11
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.11-ssl-fixes@1281 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-09-07 11:00:02 +00:00
Jan Kneschke
fe8b467cc1
removed umask(0);, let the old umask stay in place ( fixes #547 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@1026 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-03-04 17:12:46 +00:00
Jan Kneschke
2882cdea8e
fixed end of life memleaks ( fixes #524 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@1020 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-03-04 14:57:35 +00:00
Jan Kneschke
cf25271180
added list of compiled in modules (robe)
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@982 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-02-03 17:22:43 +00:00
Jan Kneschke
07a3253da9
added error-msg if FAMopen fails ( fixes #484 ) (patch by avar)
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@967 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-01-31 13:10:23 +00:00
Jan Kneschke
94334e46b2
1x INT == graceful shutdown
...
2x INT == hard shutdown
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@908 152afb58-edef-0310-8abb-c4023f1b3aa9
2006-01-03 14:44:47 +00:00