Commit Graph

1689 Commits (593599f14acf2ddbe31b24d970266d9e5fcab9c2)
 

Author SHA1 Message Date
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
14 years ago
Stefan Bühler 97cec38a3b Fix compile error if TLS SNI isn't supported
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2652 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Stefan Bühler 8c83976dbe mod_fastcgi: Add "X-Sendfile2" - supporting multiple ranged files (fixes #2008)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2651 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Stefan Bühler 7322d53684 Fix some warnings in previous commit (TLS SNI)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2650 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Peter Colberg 8b6dae4139 Add TLS servername indication (SNI) support (fixes #386, thx Peter Colberg <peter@colberg.org>)
* This patch may "break" some configs, if they do stupid things. Like setting
  ssl.pemfile to a not existing file in a "non-socket/non-ssl" block.
  Fix them! :)

From: Peter Colberg <peter@colberg.org>

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2648 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Stefan Bühler 83145e8ba6 mod_rewrite: add url.rewrite-[repeat-]if-not-file to rewrite if file doesn't exist or is not a regular file (fixes #985, thx lucas aerbeydt)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2647 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Stefan Bühler b9f5f1de8c Fix mod_fastcgi bin-path check
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2646 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Stefan Bühler 20c4cd55c3 Fix close_timeout_ts trigger (should finally fix lingering close)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2645 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Stefan Bühler 915a9e3e88 Add some iterators for mod_magnet (fixes #1307)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2644 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Stefan Bühler 67cb38d0ca always define _GNU_SOURCE
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2643 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Stefan Bühler ea903c7512 mod_accesslog: configurable timestamp logging (fixes #1479)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2642 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Stefan Bühler 07ed8a269b mod_usertrack: Use T_CONFIG_INT for max-age, solves range problem (#1455)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2641 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Stefan Bühler 0bd06a9629 Fix segfault on invalid config "duplicate else conditions" (fixes #2065)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2640 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Stefan Bühler fd13e94427 mod_fastcgi: restart local procs immediately after they terminated, fix local procs handling
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2639 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Stefan Bühler a68a289c75 Fix linger-on-close behaviour to avoid rare failure conditions (was r2636, fixes #657, thx apenwarr)
Sry for the broken commit message

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2638 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Stefan Bühler ce74fd521c tests: Rename env-var to select tests to RUNTESTS
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2637 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Stefan Bühler 7c65bd74ff commit 476c5d48ea9fbd4d1c6d4ef3f128b6e4898a297f
Fix linger-on-close behaviour to avoid rare failure conditions.

     - Don't assume that when FIONREAD returns 0, that it's safe to close the
       socket.  There may still be data that's about to arrive, and we'll still
       send an RST if the socket is confused, potentially confusing the client.

     - Don't close the connection immediately after sending a successful
       response; linger-on-close was only happening in the case of errors, but it
       has to happen in case of success too, because the client doesn't
       necessarily know we're about to close after this request, and may have
       sent additional ones. (eg. if server.max-keep-alive-requests is small.)

     - Don't close the connection immediately even if keep_alive is 0; there are
       several reasons keep_alive can be 0.  If the client requested Connection:
       close, then it would be okay to close right away, since we can assume he
       didn't send anything else.  But it's harmless (and more resilient) to do
       the lingering regardless.

     - Increase the lingering timeout from 1s to 30s.  In the vast majority of
       cases, the timeout never kicks in anyway.  The only times when it might
       be needed are a) in race conditions, in which case timing out too early
       defeats the purpose of lingering at all; b) if there's a lot of data,
       which is basically the same as (a); or c) if the remote end disappears,
       in which case we now suffer through a longer timeout... but we would
       anyway, if we were waiting for them to receive our transmission.

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2636 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Stefan Bühler 925a5ed5c4 mod_fastcgi: fix is_local detection, respawn backends if bin-path is set (fixes #897)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2635 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Stefan Bühler d21c645bfa mod_compress: match partial+full content-type (fixes #1552)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2634 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Stefan Bühler af3961c9d9 Update NEWS file
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2633 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Stefan Bühler b9db35f5ff mod_fastcgi: don't disable backend if disable-time is 0 (fixes #1825)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2632 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Stefan Bühler 17d0c36eed Read hostname from absolute uris in the request line (fixes #1937)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2631 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Stefan Bühler a55f82a392 mod_webdav: Delete old properties before updating new for MOVE (fixes #1317)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2630 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Stefan Bühler cef23f08d3 mod_webdav: Patch to skip login information for domain part of Destination field (fixes #1793)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2629 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Stefan Bühler 56adf372fb Revert to _GNU_SOURCE before <time.h> for strptime
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2628 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Stefan Bühler 844d2e9ef5 Add _XOPEN_SOURCE for strptime
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2627 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Stefan Bühler 3d22a09b51 Add <sys/types.h> before including event backends
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2626 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Stefan Bühler 122831dc17 Fix some compile problems from header inclusion reorder patch
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2625 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
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
14 years ago
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
14 years ago
Elan Ruusamäe 6c75b7bf24 - Combine Cache-Control header value in mod_expire to existing HTTP header if header already added by other modules (fixes #2068)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2621 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Elan Ruusamäe e74295262b - space cosmetic for last commit
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2620 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Elan Ruusamäe cb1ad7b130 - include query string in fastcgi backend errors
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2619 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Stefan Bühler f9e65e8500 Fixed some small non-critical leaks reported by cppcheck
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2618 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Stefan Bühler 34d3f7da99 Create m4/ directory in autogen.sh
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2616 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Stefan Bühler 759121da93 Fix autogen.sh (used mysql-proxy as template)
* add --foreign as ChangeLog was removed


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2615 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Stefan Bühler 543f8040d3 Print an error if you use too many captures in a regex pattern (fixes #2059)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2614 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Stefan Bühler 5ae8685604 Use linux-epoll by default if available (fixes #2021, thx Olaf van der Spek)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2612 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Stefan Bühler 0eff441bb6 tests: fix endless loop if connect fails without the child dying
Found as make check on ubuntu hardy hanged itself, as perl-base
dependencies were broken and didn't require /etc/protocols but it
needed the file.


git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2610 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Stefan Bühler 0413cf0ecf Set tm.tm_isdst = 0 before mktime() (fixes #2047)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2608 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Stefan Bühler 956b6e1924 Print errors from include_shell to stderr
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2606 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Stefan Bühler a1862cc809 Fix ipv6 in mod_proxy (fixes #2043)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2605 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Stefan Bühler ed417a04d6 Allow mod_mysql_vhost to use stored procedures (fixes #2011, thx Ben Brown)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2604 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Stefan Bühler ea78edda65 Fix typo in NEWS (referenced wrong bug)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2603 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Stefan Bühler 64c2e93336 Cleanup tree: remove .cvsignore and ChangeLog (deprecated by NEWS)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2600 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Stefan Bühler 97faac295b Update fastcgi doc
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2599 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Stefan Bühler 7b4d8fe8c3 Remove adaptive spawning code from fastcgi (was disabled for a long time)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2598 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Stefan Bühler 8004ebbddf Use disable-time in fastcgi for all disables after errors, default is 1sec (fixes #2040)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2597 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Stefan Bühler 9e6b2c63f0 Fix handling network-write return values (#2024)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2596 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Stefan Bühler f712888913 Try to fix server.tag issue with localized svnversion
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2595 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago