summaryrefslogtreecommitdiffstats
path: root/server (follow)
Commit message (Collapse)AuthorAgeFilesLines
* The Event MPM.Paul Querna2004-11-2010-3/+3098
| | | | | | | | | | | | | | | | | | | | Designed to minimize Apache's KeepAlive overhead. This MPM depends on the current APR-trunk for new features added to the apr_pollset interface. Currently the underlying operating system must support KQueue or EPoll. Status: Should work as a drop in replacement for all non-ssl servers. SSL Requests that use HTTP 1.1 Pipelining do not currently work. Testing: I have tested it with Linux 2.6, FreeBSD 5.2.1, and OS X 10.3. Originally based on the patch by Greg Ames. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105919 13f79535-47bb-0310-9956-ffa450edef68
* Remove the .cvsignore files.Joe Orton2004-11-199-60/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105796 13f79535-47bb-0310-9956-ffa450edef68
* remove out-of-date comment... BillS reports thatJeff Trawick2004-11-041-5/+0
| | | | | | | | | | AP_MPM_DISABLE_NAGLE_ACCEPTED_SOCK provides the necessary capability to the MPM Submitted by: stoddard a.k.a. BillS a.k.a. FirstBill git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105682 13f79535-47bb-0310-9956-ffa450edef68
* Fix for memory consumption DoS, CVE CAN-2004-0942:Joe Orton2004-11-041-47/+22
| | | | | | | | | | | | | * server/protocol.c (ap_rgetline_core): Don't trim trailing whitespace from the buffer here. (ap_get_mime_headers_core): Trim trailing whitespace here, after reading a complete field including continuation lines. Also simplify code to remove whitespace between field-name and colon. Reviewed by: Andr�� Malo, Bill Stoddard git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105680 13f79535-47bb-0310-9956-ffa450edef68
* * server/util_filter.c (ap_save_brigade): Be more tolerant of a bucketJoe Orton2004-11-021-3/+8
| | | | | | | | | type which neither implements ->setaside nor morphs on ->read, such as the mod_perl SV bucket type in mod_perl <1.99_17; defer returning an error in this case until after calling setaside on each bucket. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105664 13f79535-47bb-0310-9956-ffa450edef68
* Change core connection handling so that a connection-orientedJeff Trawick2004-11-011-1/+16
| | | | | | | | | | | | | | | error disabling nagle* is logged with the client IP address and a debug log level. We filter out not-implemented errors from platforms which don't support TCP_NODELAY. *This is typically EINVAL, which means that the client already dropped the connection. Also, mention an earlier change to include the client IP address when logging connection-oriented errors. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105652 13f79535-47bb-0310-9956-ffa450edef68
* add ap_log_cerror(); use it in a couple of places in core output filterJeff Trawick2004-10-292-10/+28
| | | | | | | so that the client IP address is recorded in the log git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105625 13f79535-47bb-0310-9956-ffa450edef68
* Use a more descriptive error message, and make it an INFO insteead of NOTICE.Paul Querna2004-10-251-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105593 13f79535-47bb-0310-9956-ffa450edef68
* PR: 31875Nick Kew2004-10-251-0/+10
| | | | | | | Fix URI parsing bug in case of a leading double-slash git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105586 13f79535-47bb-0310-9956-ffa450edef68
* This will put some messages in the error log when some people try a lamePaul Querna2004-10-251-1/+4
| | | | | | | | | | | | | | | | DoS by just opening a socket, and never sending any data. Ivan suggested such a change about a month ago, to match the 1.3 behavoir. Today I helped OSU's Admins figure out that someone was trying this 'attack' against their mirror server. The server status just showed hundreds of Apache Children stuck in Reading. This will at least hint to the admins where the problem is by telling them about it in the error log. Inspired by: Rici Lake, Ivan Ristic <ivanr webkreator.com> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105583 13f79535-47bb-0310-9956-ffa450edef68
* veto and revert win64 patch: 64bit changes must percolate from theRoy T. Fielding2004-10-246-59/+47
| | | | | | | | | bottom (APR/system) up -- we can't give the client a 64bit API and then cast it to 32bits internally without introducing security holes on other platforms. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105572 13f79535-47bb-0310-9956-ffa450edef68
* WIN64: API changes to clean up Windows 64bit compile warningsAllan K. Edwards2004-10-226-47/+59
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105545 13f79535-47bb-0310-9956-ffa450edef68
* Minor comment fixes, no code changes:Erik Abele2004-10-111-1/+1
| | | | | | | | | | | | | | - 'sub request' -> 'subrequest' - @retrn -> @return - ... PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105408 13f79535-47bb-0310-9956-ffa450edef68
* parm cast should be DWORDAllan K. Edwards2004-10-061-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105394 13f79535-47bb-0310-9956-ffa450edef68
* remove dead codeJeff Trawick2004-10-061-4/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105392 13f79535-47bb-0310-9956-ffa450edef68
* clarify select() usage on WindowsAllan K. Edwards2004-10-061-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105391 13f79535-47bb-0310-9956-ffa450edef68
* WIN64: fix some windows specific 64bit warningsAllan K. Edwards2004-10-061-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105390 13f79535-47bb-0310-9956-ffa450edef68
* WIN64: SOCKET is not int on 64bit platformsAllan K. Edwards2004-10-051-6/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105386 13f79535-47bb-0310-9956-ffa450edef68
* * server/util_filter.c (ap_save_brigade): Handle an ENOTIMPL setasideJoe Orton2004-09-261-4/+15
| | | | | | | | | | | | function correctly. * modules/generators/mod_cgi.c (cgi_handler): Revert r1.169, unnecessary CGI bucket lifetime kludge. PR: 31247 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105297 13f79535-47bb-0310-9956-ffa450edef68
* * server/mpm_common.c (dummy_connection): Log the address if theJoe Orton2004-09-231-1/+1
| | | | | | | connect() fails. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105264 13f79535-47bb-0310-9956-ffa450edef68
* * server/log.c (log_error_core): For APLOG_DEBUG on Unix, if __FILE__Joe Orton2004-09-221-1/+8
| | | | | | | is an absolute path (as in a VPATH build), just log the basename. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105258 13f79535-47bb-0310-9956-ffa450edef68
* WIN64: first in a series to get Windows IA64 builds clean, this serves pagesAllan K. Edwards2004-09-223-11/+16
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105257 13f79535-47bb-0310-9956-ffa450edef68
* * server/scoreboard.c (create_namebased_scoreboard): UseJoe Orton2004-09-221-1/+1
| | | | | | | | | apr_shm_remove() rather than the unsufficient apr_file_remove(). PR: 27189 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105247 13f79535-47bb-0310-9956-ffa450edef68
* * server/protocol.c (ap_rgetline_core): Never NUL terminate atJoe Orton2004-09-211-3/+3
| | | | | | | | | (*s)[-1] for caller-supplied *s. Submitted by: Rici Lake <ricilake speedy.com.pe> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105231 13f79535-47bb-0310-9956-ffa450edef68
* Merge mod_filter with util_filter structs; add API for protocol stuff.Nick Kew2004-09-211-3/+21
| | | | | | | Rename FilterDebug directive to FilterTrace. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105226 13f79535-47bb-0310-9956-ffa450edef68
* * server/core.c (merge_core_dir_configs): Fix Satisfy merging sinceJoe Orton2004-09-201-0/+4
| | | | | | | | | | per-method Satisfy feature was added. PR: 31315 Submitted by: Rici Lake <rici ricilake.net> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105215 13f79535-47bb-0310-9956-ffa450edef68
* Unix MPMs: Shut down the server more quickly when child processes areJeff Trawick2004-09-181-33/+60
| | | | | | | slow to exit. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105195 13f79535-47bb-0310-9956-ffa450edef68
* Worker shared data has to be visible across all child processes,Mladen Turk2004-09-151-16/+8
| | | | | | | so remove creating that data on per-child basis. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105134 13f79535-47bb-0310-9956-ffa450edef68
* * server/util.c (ap_resolve_env): Rewrite to avoid buffer overflows.Joe Orton2004-09-151-33/+81
| | | | | | | | Submitted by: Andr�� Malo Reviewed by: jorton, mjc git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105130 13f79535-47bb-0310-9956-ffa450edef68
* * server/protocol.c (ap_rgetline_core): Fix off-by-one.Joe Orton2004-09-131-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105113 13f79535-47bb-0310-9956-ffa450edef68
* Fix typo in previous commit.Joe Orton2004-09-131-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105112 13f79535-47bb-0310-9956-ffa450edef68
* * server/core.c (default_handler): Fix the test for whether to split aJoe Orton2004-09-131-12/+7
| | | | | | | | | | | file into several buckets: it is needed regardless of whether sendfile is enabled, and APR_HAS_LARGE_FILES is not sufficient to determine whether sizeof(apr_off_t) is greater than sizeof(apr_off_t). PR: 28898 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@105111 13f79535-47bb-0310-9956-ffa450edef68
* handling of encoded non-slashes was borked in theJeff Trawick2004-09-021-6/+2
| | | | | | | | | AllowEncodedSlashes path thanks to FirstBill for pointing that out! git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104937 13f79535-47bb-0310-9956-ffa450edef68
* Fix the handling of URIs containing %2F when AllowEncodedSlashesJeff Trawick2004-09-011-1/+1
| | | | | | | | is enabled. Previously, such urls would still be rejected with 404. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104925 13f79535-47bb-0310-9956-ffa450edef68
* Fix for Bug 18757 (sending bogus content-length of zero in no-body requests)Nick Kew2004-09-011-1/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104923 13f79535-47bb-0310-9956-ffa450edef68
* Win32: Fix stranded piped loggers on apache -k start,restart,config,installBill Stoddard2004-08-251-0/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104799 13f79535-47bb-0310-9956-ffa450edef68
* use more intuitive variable namesStas Bekman2004-08-201-6/+6
| | | | | | | | | | | | | ap_sub_req_*_uri to use new_uri ap_sub_req_*_file to use new_file PR: Obtained from: Submitted by: Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104758 13f79535-47bb-0310-9956-ffa450edef68
* Implement -t -DDUMP_MODULES using generic test_config hook rather thanJoe Orton2004-08-172-9/+6
| | | | | | | | | | | | | | | | | | | | | hooking into mod_so from main.c: * include/http_config.h, server/config.c: Declare test_config hook. * server/main.c: Drop hooks into mod_so; run test_config hooks. * modules/mappers/mod_so.h: Drop ap_dump_loaded_modules optional function. * modules/mappers/mod_so.c (dump_loaded_modules): Renamed from ap_dump_loaded_modules; only run if -DDUMP_MODULES is defined. (register_hooks): Register test_config hook instead of optional function. Reviewed by: Justin Erenkrantz, Paul Querna git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104685 13f79535-47bb-0310-9956-ffa450edef68
* WinNT MPM: Fix a broken log message at termination.Jeff Trawick2004-08-141-1/+2
| | | | | | | | | PR: 28063 Submitted by: Eider Oliveira <eider bol.com.br> Reviewed by: Jeff Trawick git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104652 13f79535-47bb-0310-9956-ffa450edef68
* tweak error handling when reading the pid fileJeff Trawick2004-08-142-3/+4
| | | | | | | | | | | | | | | previously strtol() would look at unitialized storage, but now the string is terminated where the data read ends give user a hint about removing the file if we can't read/parse it properly (somehow I ended up with a truncated httpd.pid on my own system, leading to these tweaks) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104651 13f79535-47bb-0310-9956-ffa450edef68
* Fix signedness emit.William A. Rowe Jr2004-08-121-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104639 13f79535-47bb-0310-9956-ffa450edef68
* * modules/ssl/ssl_engine_kernel.c (ssl_callback_SSLVerify_CRL),Joe Orton2004-08-112-7/+7
| | | | | | | | | | | | | * server/log.c (ap_log_pid), * server/mpm/prefork/prefork.c (accept_mutex_on, accept_mutex_off), * support/htdbm.c (htdbm_list): Fix some non-literal format strings (warnings from gcc -Wformat-security). PR: 30585 Submitted by: Ulf Harnhammar (SITIC), Joe Orton git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104548 13f79535-47bb-0310-9956-ffa450edef68
* Remove deprecated APR_STATUS_IS_SUCCESS() macro in favor of direct test againstJustin Erenkrantz2004-08-012-2/+2
| | | | | | | APR_SUCCESS. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104439 13f79535-47bb-0310-9956-ffa450edef68
* perchild MPM: Fix thread safety problem in the use of longjmp().Jeff Trawick2004-07-311-3/+5
| | | | | | | | Submitted by: Tsuyoshi SASAMOTO <nazonazo super.win.ne.jp> Reviewed by: Jeff Trawick git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104436 13f79535-47bb-0310-9956-ffa450edef68
* Add load balancer support to the scoreboard in preparation forGraham Leggett2004-07-291-2/+43
| | | | | | | | | | | load balancing support in mod_proxy. PR: Obtained from: Submitted by: Mladen Turk <mturk@apache.org> Reviewed by: git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104404 13f79535-47bb-0310-9956-ffa450edef68
* * server/core.c (set_allow_opts): Fix gcc warning.Joe Orton2004-07-171-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104313 13f79535-47bb-0310-9956-ffa450edef68
* Allocate memory from the temp_pool rather than the stack to avoid blowing ↵Bradley Nicholes2004-07-161-1/+1
| | | | | | fixed length stacks while evaluating nested includes git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104310 13f79535-47bb-0310-9956-ffa450edef68
* Replace the strsep() call to the more portable apr_strtok() call so that we ↵Bradley Nicholes2004-07-161-6/+4
| | | | | | can build again git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104305 13f79535-47bb-0310-9956-ffa450edef68
* remove tabs from my last commit.Paul Querna2004-07-141-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104284 13f79535-47bb-0310-9956-ffa450edef68
* Added 'AllowOverride Options=Indexes,MultiViews' to give an admin betterPaul Querna2004-07-143-4/+97
| | | | | | | | | | control over what options can be used in .htaccess files. PR: 29310 Submitted by: Tom Alsberg <alsbergt-apache cs.huji.ac.il> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@104283 13f79535-47bb-0310-9956-ffa450edef68