Commit Graph

274 Commits (4a6fe83837907674450a24914e6b863bcc84d0a5)

Author SHA1 Message Date
Glenn Strauss aa14493e47 [tests] reduce time waiting for backends to start
6 years ago
Glenn Strauss 0a635fc8be [core] consolidate dynamic handler response parse
6 years ago
Glenn Strauss e4bb56222f [mod_cgi,fastcgi,scgi,proxy] fix streaming response (fixes #2796)
6 years ago
Glenn Strauss bd77abe0f8 [config] more specific checks for array lists
6 years ago
Glenn Strauss 1dd5cce3bc [mod_fastcgi,mod_scgi] consolidate backend process accounting (#2788)
6 years ago
Glenn Strauss 23c3535efc [mod_scgi] fix potential repeated use of proc->id
6 years ago
Glenn Strauss fb6b4027c8 [mod_fastcgi,mod_scgi] consistent waitpid handling (fixes #2791)
6 years ago
Glenn Strauss aa923e05f6 [mod_fastcgi,mod_scgi] backend spawn EINTR retry (#2788)
6 years ago
Glenn Strauss 3209f30d11 [core] handle if backend sends Transfer-Encoding (#2786)
6 years ago
Glenn Strauss 7f9209c6d4 [mod_cgi] do not send "Status" back to client
6 years ago
Glenn Strauss 8981ca0467 [core] use getaddrinfo,inet_pton vs gethostbyname (fixes #2783)
6 years ago
Glenn Strauss 1adf1df285 remove redundant calls to end-of-request hooks
6 years ago
Glenn Strauss 64df38aad8 [mod_fastcgi] detect child exit, restart proactively
6 years ago
Glenn Strauss 4d7f5737f1 [core] support Transfer-Encoding: chunked req body (fixes #2156)
6 years ago
Glenn Strauss f9737e50a6 [mod_fastcgi,mod_scgi] warn if invalid "bin-path"
6 years ago
Glenn Strauss 5bf5e1adcc fix race in dynamic handler configs (reentrancy) (fixes #2774)
6 years ago
Glenn Strauss 40e05e9b8c [mod_fastcgi] fix segfault if all backends down (fixes #2768)
6 years ago
Glenn Strauss fa67918d3e fix FastCGI, SCGI, proxy reconnect on failure
6 years ago
Glenn Strauss 1e129cce45 ignore return value from fcntl() FD_CLOEXEC
6 years ago
Glenn Strauss 7fa5bfc938 consistent, shared code to create CGI env
6 years ago
Glenn Strauss 81ce160d83 silence warnings from clang ccc-analyzer
6 years ago
Glenn Strauss 93afda9c8e performance: use Linux extended syscalls and flags
6 years ago
Glenn Strauss 7b7350ee19 [mod_fastcgi] allow authorizer, responder for same path/ext (#321)
6 years ago
Glenn Strauss dc91e40657 dynamic handlers store debug flag in handler_ctx
6 years ago
Glenn Strauss 2dcfe1733e [mod_fastcgi] Authorizer support with Responder (fixes #321, fixes #322)
6 years ago
Glenn Strauss 40f16d52db [core] fix crash if ready events on abandoned fd (fixes #2748)
7 years ago
Glenn Strauss 666b9fd726 [core] enforce wait for POLLWR after EINPROGRESS (fixes #2744)
7 years ago
Glenn Strauss 9af58a9716 revert 1.4.40 swap of REQUEST_URI, REDIRECT_URI (fixes #2738)
7 years ago
Glenn Strauss 779c133c16 [security] do not emit HTTP_PROXY to CGI env
7 years ago
Glenn Strauss c1af146a6e [mod_fastcgi,mod_scgi] check for spawning on same unix socket (#319)
7 years ago
Glenn Strauss b67ff2aaca [mod_fastcgi,mod_scgi] check for spawning on same unix socket (#319)
7 years ago
Glenn Strauss 69ec5728f9 use con->conf.server_tag in modules
7 years ago
Glenn Strauss 8dcbd61a45 [cygwin] fix mod_proxy and mod_fastcgi ioctl use
7 years ago
Glenn Strauss 5863cb5752 defer choosing "Transfer-Encoding: chunked"
7 years ago
Glenn Strauss bfac0285a7 remove excess calls to joblist_append()
7 years ago
Glenn Strauss 4ef4baa59d http_response_backend_error()
7 years ago
Glenn Strauss 923688d2da drain backend socket/pipe bufs upon FDEVENT_HUP
7 years ago
Glenn Strauss 18a7b2be37 [core] option to stream response body to client (fixes #949, #760, #1283, #1387)
7 years ago
Glenn Strauss ddfae019cb separate routines for reading output from backends
7 years ago
Glenn Strauss f69f209e6d [core] option to stream request body to backend (fixes #376)
7 years ago
Glenn Strauss 53f550b290 [core] stream response to client (#949)
7 years ago
Glenn Strauss 5a91fd4b90 [core] buffer large responses to tempfiles (fixes #758, fixes #760, fixes #933, fixes #1387, #1283, fixes #2083)
7 years ago
Glenn Strauss b29c8efcb9 [mod_fastcgi] no chunked response w/ X-Sendfile (fixes #2733)
7 years ago
Glenn Strauss 4059dcd60e [mod_fastcgi,mod_scgi] IPv6 support (fixes #2372)
7 years ago
Glenn Strauss b9940f9856 [mod_fastcgi] use http_response_xsendfile() (fixes #799, fixes #851, fixes #2017, fixes #2076)
7 years ago
Glenn Strauss dbdab5dbc9 [core] server.error-handler new directive for error pages (fixes #2702)
7 years ago
Glenn Strauss 5492063f35 [core] set REDIRECT_STATUS to error_handler_saved_status (fixes #1828)
7 years ago
Glenn Strauss d7638b9b10 fix some warnings reported by static analysis tool
7 years ago
Glenn Strauss d0dc881d73 [doc] enhance error msg for backend server config
7 years ago
Glenn Strauss 2f21aaa973 handlers can read response before sending req body (fixes #131, #2566)
7 years ago
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