Commit Graph

1666 Commits (33cebeb0f778d437e1a6070504f588b2531fa291)

Author SHA1 Message Date
Stefan Bühler d601017b75 mod_fastcgi: x-sendfile2 parse error debugging
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2703 152afb58-edef-0310-8abb-c4023f1b3aa9
2010-01-20 13:22:40 +00:00
Stefan Bühler e21a83934e Fix mod_cgi cgi.execute-x-only option in global block
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2702 152afb58-edef-0310-8abb-c4023f1b3aa9
2010-01-06 16:07:43 +00:00
Stefan Bühler 6e035ae1cf mod_accesslog: support %e (fixes #2113, thx presbrey)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2699 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-12-14 15:58:35 +00:00
Stefan Bühler 529b06854f Remove dependency on automake >= 1.11 with m4_ifdef check
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2697 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-11-29 14:13:20 +00:00
Stefan Bühler 48fea28651 Fix request parser to handle packets with splitted \r\n\r\n (fixes #2105)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2696 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-11-29 14:13:13 +00:00
Stefan Bühler b5a76921e4 - next is 1.4.26
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2695 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-11-21 16:08:36 +00:00
Stefan Bühler 175ad79a0b Fix configure.ac to allow autoreconf, also enables make V=0
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2693 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-11-21 15:11:59 +00:00
Stefan Bühler 2eaf42d0e5 mod_fastcgi: Don't reconnect after connect() succeeded (fixes #2096)
- a reconnect would try to rebuild the outgoing queue,
   which involves reusing the post body - but the first
   try already removed it.
   we could try reusing the queue, but otoh that really
   isn't our problem. accept() it - handle it.

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2692 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-11-07 22:00:10 +00:00
Stefan Bühler 781784664a mod_fastcgi: fix mod_fastcgi packet parsing
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2691 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-11-07 18:24:04 +00:00
Stefan Bühler e430ce09bc export some SSL_CLIENT_* vars for client cert validation (fixes #1288, thx presbrey)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2688 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-11-05 21:46:48 +00:00
Stefan Bühler 2b79b9c3cb reset tlsext_server_name in connection_reset - fixes random hostnames in the $HTTP["host"] conditional
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2687 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-11-05 17:32:08 +00:00
Stefan Bühler 47bd40368d mod_rrdtool: fix creating file if it doesn't exist (#1788)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2686 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-10-31 09:54:13 +00:00
Stefan Bühler ef28250d23 disable warning "CLOSE-read", part 2 (fixes #2091)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2685 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-10-27 08:46:05 +00:00
Stefan Bühler a81c2a1b02 disable warning "CLOSE-read"
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2684 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-10-26 19:30:40 +00:00
Stefan Bühler c3c58ae9c6 mod_rewrite: fix compile error if compiled without pcre
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2683 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-10-26 18:48:26 +00:00
Stefan Bühler f5f6b954b0 mod_magnet: add traceback for printing lua errors
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2681 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-10-26 14:16:20 +00:00
Stefan Bühler 07ae3fb815 mod_magnet: fix pairs() for normal tables and strings (fixes #1307)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2680 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-10-26 14:16:15 +00:00
Stefan Bühler 66805d03a6 - next is 1.4.25
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2679 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-10-26 14:16:09 +00:00
Stefan Bühler 987110317f Fix broken return values from int to enum in mod_fastcgi
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2670 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-10-20 07:32:40 +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 a0dfe15e41 Fix NEWS - referenced wrong bug (fixes #2084)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2668 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-10-17 14:06:37 +00:00
Stefan Bühler 1d5d55a484 Don't print ssl error if client didn't support TLS SNI
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2666 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-10-16 22:06:22 +00:00
Stefan Bühler e087d5bf1e fix mod_webdav crash from #1793 (fixes #2048, thx hiroya)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2665 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-10-16 19:00:19 +00:00
Stefan Bühler 6ecb86159c Fix accesslog escape segfault (#1551)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2664 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-10-16 18:56:04 +00:00
Stefan Bühler 069e848a0c mod_accesslog: escape special characters (fixes #1551, thx icy)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2660 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-10-16 16:43:28 +00:00
Stefan Bühler 19838e99eb mod_fastcgi: Fix host->active_procs counter, return 503 if connect wasn't successful after 5 tries (fixes #1825)
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2657 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-10-16 09:02:41 +00:00
Stefan Bühler 1aaa67bb9b Fix compile problems without ssl
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2656 152afb58-edef-0310-8abb-c4023f1b3aa9
2009-10-14 19:05:00 +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 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
2009-10-14 17:46:23 +00:00
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
2009-10-14 17:32:38 +00:00
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
2009-10-14 14:32:24 +00:00
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
2009-10-14 13:39:59 +00:00
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
2009-10-12 21:49:09 +00:00
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
2009-10-12 21:49:01 +00:00
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
2009-10-12 20:59:38 +00:00
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
2009-10-12 19:49:43 +00:00
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
2009-10-12 10:39:36 +00:00
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
2009-10-12 10:13:01 +00:00
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
2009-10-12 09:35:01 +00:00
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
2009-10-12 08:48:08 +00:00
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
2009-10-11 21:54:50 +00:00
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
2009-10-11 20:36:49 +00:00
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
2009-10-11 20:32:40 +00:00
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
2009-10-11 20:32:33 +00:00
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
2009-10-11 19:46:32 +00:00
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
2009-10-11 19:27:55 +00:00
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
2009-10-11 19:11:45 +00:00
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
2009-10-11 19:08:38 +00:00
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
2009-10-11 18:31:25 +00:00
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
2009-10-11 17:22:24 +00:00