Commit Graph

274 Commits (4a6fe83837907674450a24914e6b863bcc84d0a5)

Author SHA1 Message Date
Glenn Strauss 7f942ce09a remove handle_joblist hook
7 years ago
Glenn Strauss 4b0c822ed0 always poll for client POLLHUP/POLLERR events (fixes #399)
7 years ago
Glenn Strauss 8f27ff8cd4 defer reading request body until handle subrequest
7 years ago
Glenn Strauss c263bc6a11 defer reading request body until handle subrequest (fixes #2541)
7 years ago
Glenn Strauss bbbbfb3de0 untangle overly complex control flow logic
7 years ago
Glenn Strauss 71ed1912c7 [config] server.listen-backlog option (fixes #1825, #2116)
7 years ago
Glenn Strauss a65c57a548 [core] open fd when appending file to cq (fixes #2655)
7 years ago
Glenn Strauss c4edd35655 skip spawning backends for preflight tests (#2642)
7 years ago
Glenn Strauss 97556d992b [mod_fastcgi,mod_scgi] check for spawning on same unix socket (fixes #319)
7 years ago
Glenn Strauss 47f3dbebe4 use li_[iu]tostrn() instead of li_[iu]tostr()
7 years ago
Glenn Strauss f5453290b7 validate return values from strtol, strtoul (fixes #2564)
7 years ago
Glenn Strauss 733ce38203 [http_auth/mod_fastcgi] check get_http_*_name() for NULL return (#2583)
7 years ago
Glenn Strauss 8abd06a7ff consistent inclusion of config.h at top of files (fixes #2073)
7 years ago
Stefan Bühler 8d8ae9cbc8 [core] improve array API to prevent theoretical memory leaks
7 years ago
Stefan Bühler c5a42e932f [mod_fastcgi,mod_scgi] fix leaking file-descriptor when backend spawning failed (reported by Fortify Open Review Project)
7 years ago
Glenn Strauss c80ae9b212 [mod_fastcgi] 404 for X-Sendfile file not found (fixes #2474)
7 years ago
Kyle J. McKay b0ecb4d44b [mod_fastcgi/mod_scgi] zero sockaddr structs before use (fixes #2691)
7 years ago
Stefan Bühler c512345fa2 [config] check config option scope; warn if server option is given in conditional
7 years ago
Stefan Bühler 26226271de maintain cq->bytes_in in chunk API; keep bytes_out/bytes_in synced
8 years ago
Stefan Bühler cfaa78ebc5 check fcgi_env_add return value (found by coverity)
8 years ago
Stefan Bühler 33cebeb0f7 fix segfaults in many plugins if they failed configuration
8 years ago
Stefan Bühler ad3e93ea96 Use buffer API to read and modify "used" member
8 years ago
Stefan Bühler 4365bdbebe Remove buffer_prepare_copy() and buffer_prepare_append()
8 years ago
Stefan Bühler 1be163b44a Remove chunkqueue_get_{append,prepend}* API
8 years ago
Stefan Bühler 6afad87d2e fix buffer, chunk and http_chunk API
8 years ago
Stefan Bühler efc41b2bb1 check length of unix domain socket filenames
9 years ago
Stefan Bühler 07dd0bd0a5 add force_assert() to enforce assertions as simple assert()s are disabled by -DNDEBUG (fixes #2546)
9 years ago
Stefan Bühler fba7dd6f43 fix resource leaks in error cases on config parsing and other initializations
9 years ago
Stefan Bühler 29a1070299 add comments for switch fall throughs
9 years ago
Stefan Bühler b461e031f5 [mod_fastcgi,mod_scgi] fix resource leaks on spawning backends
9 years ago
Stefan Bühler fc3a060a04 [mod_fastcgi] fix use after free (only triggered if fastcgi debug is active)
9 years ago
Stefan Bühler 6f208cfde1 fix/silence bugs reported by ccc-analyzer (clang)
9 years ago
Stefan Bühler 559b198f86 [auth] put REMOTE_USER into cgi environment, making it accessible to lua via lighty.req_env (fixes #2495)
10 years ago
Stefan Bühler 05858f6cf2 [ssl] Fix $HTTP["scheme"] conditional, could be "http" for ssl connections if the ssl $SERVER["socket"] conditional was nested (fixes #2501)
10 years ago
Stefan Bühler 0e48ef6acb [mod_fastcgi,log] support multi line logging (fixes #2252)
10 years ago
Stefan Bühler 9cd8faa1b6 mod_fastcgi: fix mix up of "mode" => "authorizer" in other fastcgi configs (fixes #2465, thx peex)
10 years ago
Cyril Brulebois 0c6a564543 Fix non-ANSI function declarations.
11 years ago
Stefan Bühler 5677f17442 [mod_*cgi,mod_accesslog] Fix splitting :port with ipv6 (fixes #2333, thx simoncpu)
11 years ago
Stefan Bühler 7187271fb6 [auth] Add "AUTH_TYPE" environment (for *cgi), remove fastcgi specific workaround, add fastcgi test case (fixes #889)
11 years ago
Stefan Bühler f434d514ad Limit amount of bytes we send in one go; fixes stalling in one connection and timeouts on slow systems.
12 years ago
Stefan Bühler 59ebf3c818 fix some gcc warnings
12 years ago
Stefan Bühler adc97e5ba3 [*cgi] Use physical base dir (alias, userdir) as DOCUMENT_ROOT in cgi environments (fixes #2216)
12 years ago
Stefan Bühler 955fd0d08f [mod_fastcgi]: remove unused var "last_used"
12 years ago
Stefan Bühler 7e5b0fe9ab Rename fdevent_event_add to _set to reflect what the function does. Fix some handlers.
13 years ago
Stefan Bühler 38f2d1ddd7 cleanup fdevent code, removed linux-rtsig handler, replaced some fprintf calls
13 years ago
Stefan Bühler c6c8ad2ac7 mod_fastcgi: Send 502 "Bad Gateway" if we couldn't open the file for X-Sendfile (fixes #2226)
13 years ago
Stefan Bühler d58fea0c7a Fix parsing of fastcgi.debug option on big-endian (fixes #2230)
13 years ago
Stefan Bühler d601017b75 mod_fastcgi: x-sendfile2 parse error debugging
13 years ago
Stefan Bühler 2eaf42d0e5 mod_fastcgi: Don't reconnect after connect() succeeded (fixes #2096)
13 years ago
Stefan Bühler 781784664a mod_fastcgi: fix mod_fastcgi packet parsing
13 years ago
Stefan Bühler 987110317f Fix broken return values from int to enum in mod_fastcgi
13 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)
13 years ago
Stefan Bühler 8c83976dbe mod_fastcgi: Add "X-Sendfile2" - supporting multiple ranged files (fixes #2008)
13 years ago
Stefan Bühler b9f5f1de8c Fix mod_fastcgi bin-path check
13 years ago
Stefan Bühler fd13e94427 mod_fastcgi: restart local procs immediately after they terminated, fix local procs handling
14 years ago
Stefan Bühler 925a5ed5c4 mod_fastcgi: fix is_local detection, respawn backends if bin-path is set (fixes #897)
14 years ago
Stefan Bühler b9db35f5ff mod_fastcgi: don't disable backend if disable-time is 0 (fixes #1825)
14 years ago
Stefan Bühler 22e8b456a9 Fix header inclusion order, always include "config.h" before any system header
14 years ago
Elan Ruusamäe e74295262b - space cosmetic for last commit
14 years ago
Elan Ruusamäe cb1ad7b130 - include query string in fastcgi backend errors
14 years ago
Stefan Bühler 7b4d8fe8c3 Remove adaptive spawning code from fastcgi (was disabled for a long time)
14 years ago
Stefan Bühler 8004ebbddf Use disable-time in fastcgi for all disables after errors, default is 1sec (fixes #2040)
14 years ago
Stefan Bühler 9e6b2c63f0 Fix handling network-write return values (#2024)
14 years ago
Stefan Bühler 4df22f2a32 Fix issues found with clang analyzer
14 years ago
Stefan Bühler 839aa7dbd9 Reset ignored signals to SIG_DFL before exec() in fastcgi/scgi (fixes #2029)
14 years ago
Stefan Bühler fbdb305f8a Add server.breakagelog, a "special" stderr (fixes #1863)
14 years ago
Stefan Bühler b2108c436c Remove X-Sendfile-Range feature; it will be replaced with something more powerful (#2005, #2008)
14 years ago
Stefan Bühler ad1e80e5af Add X-Sendfile-Range feature (fixes #2005)
14 years ago
Stefan Bühler b063f0186a Improve FastCGI performance (fixes #1999)
14 years ago
Stefan Bühler fbf79a8e72 Modify fastcgi error message
14 years ago
Stefan Bühler 1a5d8c2dc4 Fix mod-fastcgi counters
14 years ago
Stefan Bühler d947d0d2da Fix x-sendfile 2gb limiting (fixes #1970)
14 years ago
Stefan Bühler ecfdc60945 Fix SERVER_NAME port stripping (fixes #1968)
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)
14 years ago
Stefan Bühler 3172b49840 Fix trailing zero char in REQUEST_URI after "strip-request-uri" in mod_fastcgi
14 years ago
Stefan Bühler 2e823e8d14 Use server.tag for SERVER_SOFTWARE if configured (fixes #357)
14 years ago
Stefan Bühler 638ee6cad9 Add revision number to package version for svn/git checkouts
14 years ago
Stefan Bühler def70d86e9 Remove the optional port info from SERVER_NAME (thx Mr_Bond)
14 years ago
Stefan Bühler 1e69f57b50 Remove link from errormsg about fastcgi apps (fixes #1942)
14 years ago
Stefan Bühler ce39062dd2 Fix workaround for incorrect path info/scriptname if fastcgi prefix is "/" (fixes #729)
14 years ago
Stefan Bühler 63f785a2f8 Added some extra warning options in cmake and fix the resulting warnings (unused/static functions)
14 years ago
Stefan Bühler 2a765780da Fix fastcgi-authorizer handling; Status: 200 is now accepted as the doc requests
15 years ago
Stefan Bühler 80a4f7a721 Fix fastcgi authorization in subdirectories with check-local=disabled; don't split pathinfo for authorizer. (#963)
15 years ago
Stefan Bühler 5194c28220 Fix "comparison between signed and unsigned" warning on 64 bit in mod_fastcgi
15 years ago
Stefan Bühler b511c42939 Replaced fprintf with log_error_write in mod-fastcgi
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)
15 years ago
Stefan Bühler 6ce1dfb0d1 mod_{fast,s}cgi: overwrite environment variables (#1722)
15 years ago
Stefan Bühler a7f5983e05 Fix EINTR handling for waitpid in mod_fastcgi
15 years ago
Stefan Bühler 52861d77df Replace buffer_{append,copy}_string with the _len variant where possible (#1732, thx crypt)
15 years ago
Xuefer b5632eada1 fixed #729: Incorrect PATH_INFO when FastCGI is serving "/", use "fix-root-scriptname" => "enable" to workaround
15 years ago
Xuefer 5921dc1f2d sync code between fastcgi->scgi: copy note_is_sent, fix typos
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)
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)
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)
15 years ago
Elan Ruusamäe 0fd628958c - verbose FCGI header too small error
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)
15 years ago
Elan Ruusamäe 1f68a04110 - prevent crash in certain php-fcgi configurations (#841)
15 years ago
Elan Ruusamäe 95769fb3f6 - Print error if X-LIGHTTPD-send-file cannot be done; reset header Content-Length for send-file.
15 years ago
Elan Ruusamäe bdd2fce478 - fixed a bug that made /-prefixed fcgi extensions being handled also when matching the end of the uri (#1489)
15 years ago
Marcus Rückert 7ce73896b7 - handle errors from the fcgi packet construction and return 400 if we have an error.
16 years ago
Jan Kneschke eaed2f1e50 added some extra protection to make sure key-len and val-len don't
16 years ago
Jan Kneschke 34b3ee0228 fixed FastCGI header overrun in mod_fastcgi
16 years ago
Jan Kneschke 51826fc05c renamed ltostr() to LI_ltostr() to fix compile on HP/UX (fixes #465)
16 years ago
Jan Kneschke c4e3150283 fixed possible overflow in unix-socket path checks on BSD (#713)
16 years ago
Jan Kneschke 8f9f532083 * fixed crash on 32bit archs when debug-msgs are printed in mod_scgi,
16 years ago
Marcus Rückert abdd1f5b45 - do not check stale values on errno. EAGAIN is handled inside the
16 years ago
Elan Ruusamäe 733e565a50 - spelling fixes by Ryan Schmidt (patch from mailinglist)
16 years ago
Jan Kneschke 66496a27d9 fixed for non c99 compilers
16 years ago
Marcus Rückert 64877138f6 - added "kill-signal" as setting for fastcgi blocks. applications
16 years ago
Marcus Rückert 275af90577 - set AUTH_TYPE environment variable for fastcgi requests (#889)
16 years ago
Marcus Rückert 3c40b52929 - send SIGUSR1 to fastcgi apps before SIGTERM
16 years ago
Jan Kneschke 5db109e16d cleanup whenever we have a data-struct on this connection
16 years ago
Elan Ruusamäe 40e8d326d1 - unify style
16 years ago
Marcus Rückert acd992cbf1 - applied patch from colin.stephen@o2.com (#1041)
16 years ago
Elan Ruusamäe 1c662e07ba - ignore empty packets from STDERR stream. fixes #998
16 years ago
Robert Jakabosky db76b98e03 Added round-robin support to mod_fastcgi.
16 years ago
Marcus Rückert 8cd1471cb3 - white space cleanup part 2 this time 1.4 ;)
17 years ago
Marcus Rückert 56de5af1cd - properly find fastcgi.h in /usr/include/fastcgi
17 years ago
Jan Kneschke c7b9858b03 added support for lighty.status[] in mod_magnet
17 years ago
Jan Kneschke 7ef30c4dfe don't forget the waitpid() for locally spawned processes (patch by Cameron Ring)
17 years ago
Jan Kneschke 55bfb4737d removed complex proc-load-balancing code and simplified it
17 years ago
Jan Kneschke a1eb4c307f big cleanup of error-handling
17 years ago
Jan Kneschke 9d3c1b09de fixed calculation of unix-socket path length if SUN_LEN is not defined (fixes #553)
17 years ago
Jan Kneschke 0525ed2816 fixed calculation of socket-len if SUN_LEN is not defined
17 years ago
Jan Kneschke 7e861ea32e - decrement proc-load if we really incremented it
17 years ago
Jan Kneschke d7339a70b9 mod_cgi is resetting physical.path *grr*
17 years ago
Jan Kneschke 06d111d8aa distribute connect-storms properly over the available hosts
17 years ago
Jan Kneschke 9ec477a374 - fixed load-balancing (#480)
17 years ago
Jan Kneschke de3bdbf1a2 fixed crash cause by missing comma (patch from <bobby@alphatrade.com>)
17 years ago
Jan Kneschke e41496fba7 fixed error-msg
17 years ago
Jan Kneschke ebb0efb457 oops, split the path on the final path to the binary itself
17 years ago
Jan Kneschke 8cf82a44a1 fixed wording in error-msgs
17 years ago
Jan Kneschke 4a86d31562 chdir to the bin-path dir before exec()ing the to-be-spawned fastcgi backend
17 years ago
Jan Kneschke ea57fa1747 ok, rel_path is not updated by mod_indexfile or the pathinfo handling
17 years ago
Jan Kneschke 415e215746 use physical.rel_path instead url.path to handle case-insensitive file-systems in the right way
17 years ago
Jan Kneschke abe6d62a02 don't strip numbers from the starting env (fixed #438)
17 years ago
Jan Kneschke bc95f8024a added statistics to the fastcgi module and a simple text/plain reporter to mod_status
17 years ago
Jan Kneschke ab8493f603 print usefull information if the backend crashes for some reason
17 years ago
Jan Kneschke b789ce87a1 remove zombies again
17 years ago
Jan Kneschke b85fb3b41d fix logfile spamming on conn-refused and friends
17 years ago
Jan Kneschke a4be52451f more unsigned/sign compare fixes
17 years ago
Jan Kneschke 32879e3663 fixed stripping if strip and input are the same
17 years ago
Jan Kneschke 57b7676542 fixed reconnect after dead php-backend
17 years ago
Jan Kneschke 485fea2cbb improved hints if startup fails
17 years ago
Jan Kneschke e290b119db added startup-time selectable network-backend
18 years ago
Jan Kneschke c76035f592 fixed preparation of the content if we have to get the content from 2 network packets
18 years ago
Jan Kneschke 5cafff4776 print bin-path if a fastcgi-binary exits at spawning time and us %lld for long long int
18 years ago
Jan Kneschke 1c09f28447 removed con->request.content (mem-buffer) by a chunk-queue
18 years ago
Jan Kneschke 119c0da37c the last header line is parsed again and X-LIGHTTPD-send-file was added.
18 years ago
Jan Kneschke 63dceeb0c6 open files only once for chunk, cache mmap and let the chunk itself close the fd (fixed #261, #257)
18 years ago