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
14 years ago
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
14 years ago
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
14 years ago
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
14 years ago
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
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
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
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
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
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
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
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
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
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
14 years ago
Stefan Bühler
839aa7dbd9
Reset ignored signals to SIG_DFL before exec() in fastcgi/scgi ( fixes #2029 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2582 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
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
14 years ago
Stefan Bühler
b2108c436c
Remove X-Sendfile-Range feature; it will be replaced with something more powerful ( #2005 , #2008 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2542 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Stefan Bühler
ad1e80e5af
Add X-Sendfile-Range feature ( fixes #2005 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2531 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Stefan Bühler
b063f0186a
Improve FastCGI performance ( fixes #1999 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2509 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Stefan Bühler
fbf79a8e72
Modify fastcgi error message
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2507 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Stefan Bühler
1a5d8c2dc4
Fix mod-fastcgi counters
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2506 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Stefan Bühler
d947d0d2da
Fix x-sendfile 2gb limiting ( fixes #1970 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2494 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Stefan Bühler
ecfdc60945
Fix SERVER_NAME port stripping ( fixes #1968 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2492 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Stefan Bühler
e7b0528e9e
Fix bug with FastCGI request id overflow under high load; just use always id 1 as we don't use multiplexing. (thx jgray)
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2477 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Stefan Bühler
3172b49840
Fix trailing zero char in REQUEST_URI after "strip-request-uri" in mod_fastcgi
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2472 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Stefan Bühler
2e823e8d14
Use server.tag for SERVER_SOFTWARE if configured ( fixes #357 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2471 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
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
14 years ago
Stefan Bühler
def70d86e9
Remove the optional port info from SERVER_NAME (thx Mr_Bond)
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2431 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Stefan Bühler
1e69f57b50
Remove link from errormsg about fastcgi apps ( fixes #1942 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2426 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Stefan Bühler
ce39062dd2
Fix workaround for incorrect path info/scriptname if fastcgi prefix is "/" ( fixes #729 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2421 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Stefan Bühler
63f785a2f8
Added some extra warning options in cmake and fix the resulting warnings (unused/static functions)
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2414 152afb58-edef-0310-8abb-c4023f1b3aa9
14 years ago
Stefan Bühler
2a765780da
Fix fastcgi-authorizer handling; Status: 200 is now accepted as the doc requests
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2351 152afb58-edef-0310-8abb-c4023f1b3aa9
15 years ago
Stefan Bühler
80a4f7a721
Fix fastcgi authorization in subdirectories with check-local=disabled; don't split pathinfo for authorizer. ( #963 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2324 152afb58-edef-0310-8abb-c4023f1b3aa9
15 years ago
Stefan Bühler
5194c28220
Fix "comparison between signed and unsigned" warning on 64 bit in mod_fastcgi
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2288 152afb58-edef-0310-8abb-c4023f1b3aa9
15 years ago
Stefan Bühler
b511c42939
Replaced fprintf with log_error_write in mod-fastcgi
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2287 152afb58-edef-0310-8abb-c4023f1b3aa9
15 years ago
Stefan Bühler
ad12e4c5b2
Insert many con->mode checks; they should prevent two modules to handle the same request if they shouldn't ( #631 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2271 152afb58-edef-0310-8abb-c4023f1b3aa9
15 years ago
Stefan Bühler
6ce1dfb0d1
mod_{fast,s}cgi: overwrite environment variables ( #1722 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2265 152afb58-edef-0310-8abb-c4023f1b3aa9
15 years ago
Stefan Bühler
a7f5983e05
Fix EINTR handling for waitpid in mod_fastcgi
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2264 152afb58-edef-0310-8abb-c4023f1b3aa9
15 years ago
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
15 years ago
Xuefer
b5632eada1
fixed #729 : Incorrect PATH_INFO when FastCGI is serving "/", use "fix-root-scriptname" => "enable" to workaround
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2182 152afb58-edef-0310-8abb-c4023f1b3aa9
15 years ago
Xuefer
5921dc1f2d
sync code between fastcgi->scgi: copy note_is_sent, fix typos
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2173 152afb58-edef-0310-8abb-c4023f1b3aa9
15 years ago
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
15 years ago
Stefan Bühler
fe8b7e575e
Fix mod_fastcgi prefix matching: match the prefix always against url, not the absolute filepath (regardless of check-local)
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2150 152afb58-edef-0310-8abb-c4023f1b3aa9
15 years ago
Stefan Bühler
bcb3310a62
Use data_response_init in mod_fastcgi x-sendfile handling for response.headers, fix a small "memleak" ( #1628 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2143 152afb58-edef-0310-8abb-c4023f1b3aa9
15 years ago
Elan Ruusamäe
0fd628958c
- verbose FCGI header too small error
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2119 152afb58-edef-0310-8abb-c4023f1b3aa9
15 years ago
Elan Ruusamäe
af4be7d0ce
- HTTPS env var should be "on" when using mod_extforward and the X-Forwarded-Proto header is set. ( #1499 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2052 152afb58-edef-0310-8abb-c4023f1b3aa9
16 years ago
Elan Ruusamäe
1f68a04110
- prevent crash in certain php-fcgi configurations ( #841 )
...
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@2037 152afb58-edef-0310-8abb-c4023f1b3aa9
16 years ago