Commit Graph

274 Commits (4a6fe83837907674450a24914e6b863bcc84d0a5)

Author SHA1 Message Date
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
13 years ago
Stefan Bühler 925a5ed5c4 mod_fastcgi: fix is_local detection, respawn backends if bin-path is set (fixes #897)
13 years ago
Stefan Bühler b9db35f5ff mod_fastcgi: don't disable backend if disable-time is 0 (fixes #1825)
13 years ago
Stefan Bühler 22e8b456a9 Fix header inclusion order, always include "config.h" before any system header
13 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
14 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
17 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
Jan Kneschke 38b8743af3 - don't keep the full fastcgi response in memory
18 years ago
Jan Kneschke 0f9a82bd0e only enable fastcgi if necessary
18 years ago
Jan Kneschke f350d3253a replaced /bin/sh exec by a simple cmdline parser (fixed #133)
18 years ago
Jan Kneschke 1b4b0b313a tell the user to use the right PHP build for FastCGI
18 years ago
Jan Kneschke c92984c270 fixed error-msg for EAGAIN in connect()
18 years ago
Jan Kneschke cd4c324ff2 allow numbers in header-keys
18 years ago
Jan Kneschke c8408d015c removed setup_connection (merged [295])
18 years ago
Jan Kneschke 5e134da075 dropped file-cache, added stat-cache and modules ALWAYS cleanup at connection-end
18 years ago
Jan Kneschke c5502e66eb added support to have a PATH_INFO on /prefix if check-local is disabled
18 years ago
Jan Kneschke 7126a0f2bc detect endless loops and kill them
18 years ago
Jan Kneschke 39b12c5fc6 be a bit more verbose for log-request-handling
18 years ago
Jan Kneschke e6a090656f disable adaptive spawning for now
18 years ago
Jan Kneschke b527f569af added more debug info and fix hang after a local fcgi process has died
18 years ago
Jan Kneschke e7def825a8 remove FDEVENT_OUT as soon as we hit _READ and only call joblist_append() if really needed
18 years ago
Jan Kneschke be5bb63b00 merged [166]
18 years ago
Jan Kneschke 85194f365f fixed pathinfo handling on /fcgi_pattern
18 years ago
Jan Kneschke bde657648d compile fixes for MIPSpro on IRIX
18 years ago
Jan Kneschke 7725e92ff6 rewrote the event and error handling with the help of the fcgi-responder.c from the tests.
18 years ago
Jan Kneschke 2420fd96d2 added checks for the line-terminator handling and cleanup the configs
18 years ago
Jan Kneschke aa63120540 tolerate \n\n instead of \r\n\r\n and handle overlapping
18 years ago
Jan Kneschke 9ce460f051 forget a 's' of the format-string (Bug #31)
18 years ago
Jan Kneschke bc7f12ca71 replace inet_addr() by inet_aton() as the man-page on
18 years ago
Jan Kneschke a39b52810e added SERVER_ADDR, REMOTE_PORT to mod_fastcgi and mod_cgi and
18 years ago
Jan Kneschke bcdc6a3bbc moved everything below trunk/ and added branches/ and tags/
18 years ago