summaryrefslogtreecommitdiffstats
path: root/support (follow)
Commit message (Collapse)AuthorAgeFilesLines
* split-logfile: Fix perl error: 'Can't use string ("example.org:80") Eric Covener2014-12-311-5/+4
| | | | | | | | | | | | as a symbol ref while "strict refs"'. PR 56329. Submitted By: Holger Mauermann <mauermann gmail.com> Committed By: covener git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1648719 13f79535-47bb-0310-9956-ffa450edef68
* ab: Use only one connection to determine working destination socket address.Jan Kaluža2014-09-301-5/+16
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1628388 13f79535-47bb-0310-9956-ffa450edef68
* ab: try all destination socket addresses returned by apr_sockaddr_info_getJan Kaluža2014-09-231-10/+34
| | | | | | | instead of failing on first one when not available. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1626956 13f79535-47bb-0310-9956-ffa450edef68
* ab: increase request and response header size to 8192 bytes,Jan Kaluža2014-09-041-4/+6
| | | | | | | fix potential buffer-overflow in Server: header handling. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1622450 13f79535-47bb-0310-9956-ffa450edef68
* * support/ab.c: Fix crash caused by integer overflow when printing stats withJan Kaluža2014-08-141-2/+2
| | | | | | | lot of requests (for example -n 500000000). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1617913 13f79535-47bb-0310-9956-ffa450edef68
* Remove some 'register' in variable declaration.Christophe Jaillet2014-07-141-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1610366 13f79535-47bb-0310-9956-ffa450edef68
* ab: support custom HTTP method with -m argument. PR 56604.Yann Ylavic2014-06-071-4/+9
| | | | | | | | | | Example: ab -n 1 -m PING http://127.0.0.1/ Submitted By: Roman Jurkov <winfinit gmail com> Committed By: ylavic git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1601076 13f79535-47bb-0310-9956-ffa450edef68
* Ensure that min/max valid timestamps (milliseconds since the epoch)Jeff Trawick2014-05-151-1/+8
| | | | | | | | make sense: no negative numbers, and require an input of "-" instead of "0" to indicate that the timestamp isn't being provided. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1595034 13f79535-47bb-0310-9956-ffa450edef68
* Add module mod_ssl_ct, which provides an implementation of CertificateJeff Trawick2014-04-213-1/+474
| | | | | | | | | | | | | | | Transparency (RFC 6962) for httpd. mod_ssl_ct requires OpenSSL 1.0.2 (in beta) and must be explicitly enabled via configure. Note that support/ctauditscts is purposefully not installed; it does not properly function due to a dependency on a certificate-transparency open source project tool which itself is not sufficiently complete at this time. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1588987 13f79535-47bb-0310-9956-ffa450edef68
* * support/rotatelogs.c (main): Prevent creation of zombies fromJoe Orton2014-04-141-0/+5
| | | | | | | post-rotate programs. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1587255 13f79535-47bb-0310-9956-ffa450edef68
* * support/ab.c: Revert accidental version bump in r1580928.Joe Orton2014-03-241-1/+1
| | | | | | | | (Although it seems likely this *should* have been bumped sometime since 2006?) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1580935 13f79535-47bb-0310-9956-ffa450edef68
* * support/ab.c (write_request): Avoid redundant write(,,0) precedingJoe Orton2014-03-241-1/+2
| | | | | | | the write() of the request. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1580928 13f79535-47bb-0310-9956-ffa450edef68
* follow-up to r1542533:Jeff Trawick2013-11-181-1/+2
| | | | | | | fix format string (unsigned vs. size_t) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1543020 13f79535-47bb-0310-9956-ffa450edef68
* Check all memory allocations and abort on failureStefan Fritsch2013-11-161-22/+49
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1542533 13f79535-47bb-0310-9956-ffa450edef68
* more apr_file_write_full() simplification (like r1542413)Jeff Trawick2013-11-152-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1542416 13f79535-47bb-0310-9956-ffa450edef68
* * support/rotatelogs.c: Introduce an adjusted_time_t type to store theJoe Orton2013-10-311-11/+17
| | | | | | | | | | weird "adjusted time since epoch" type returned by get_now(). Switch from int to long to fix an unnecessary Y2K38 issue. Adjust use throughout and clean up other type issues. No functional change intended apart from fixing Y2K38. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1537718 13f79535-47bb-0310-9956-ffa450edef68
* Remove unused APXS setting from template for generated MakefileJeff Trawick2013-10-251-1/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1535699 13f79535-47bb-0310-9956-ffa450edef68
* rotatelogs: Remove last constant length error buffer.Ben Reser2013-10-231-18/+20
| | | | | | | | | | | | | | | * support/rotatelogs.c (ERRMSGSZ): Remove. (rotate_status): Remove errbuff member. (truncate_and_write_error): Accept the error message as an argument. (doRotate): Shift the pool destruction slightly later and use it to generate the error message to pass truncate_and_write_error(). (main): In case of write errors create a pool to generate the error message, since the other pools available may never been freed. Adjust to pass message directly to truncate_and_write_error(). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1534914 13f79535-47bb-0310-9956-ffa450edef68
* rotatelogs: Remove another use of a consant length buffer for errors.Ben Reser2013-10-231-6/+4
| | | | | | | | | | * support/rotatelogs.c (doRotate): Use apr_psprintf() and %pm. Move the destruction of the pool after we're done with the error message so the error string stays allocated long enough. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1534896 13f79535-47bb-0310-9956-ffa450edef68
* rotatelogs: Use apr_psprintf() with %pm instead of a constant length buffer forBen Reser2013-10-231-19/+17
| | | | | | | | | | | | errors. * support/rotatelogs.c (post_rotate, doRotate): Switch to using apr_psprintf() with %pm. Suggested by: rpluem git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1534895 13f79535-47bb-0310-9956-ffa450edef68
* Add an option to autocreate directories to rotatelogs.Ben Reser2013-10-191-6/+33
| | | | | | | | | | | | | | | | | | | | | | | * support/rotatelogs.c (rotate_config): Remove const from szLogRoot since we'll be passing it to apr_filepath_merge. Add create_path member. (usage, dumpConfig): Update to reflect new -d option. (doRotate): Add code that knows how to create the directories a log file is going to go into. (main): Add the -d option and canonicalize the incoming path with apr_filepath_merge() so that the code in doRotate can work properly. * docs/man/rotatelogs.8, docs/manual/programs/rotatelogs.html.en: Update for -d option. PR: 46669 Submitted by: Philippe Lantin <plantin cobaltgroup.com> (which was actually a patch written by myself when I worked there) Tweaked by: breser (ported to trunk and changed option from -p to -d) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1533810 13f79535-47bb-0310-9956-ffa450edef68
* * support/rotatelogs.c (get_now): Fix the NULL ptr dereferences Joe Orton2013-10-151-3/+7
| | | | | | | added in r1532281. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1532289 13f79535-47bb-0310-9956-ffa450edef68
* * support/rotatelogs.c (get_now): Return the offset applied to theJoe Orton2013-10-151-14/+26
| | | | | | | | | | Unix time as a parameter. (doRotate): When exploding the time for strtfime formatting, iff in -l mode, subtract the offset and explode the real Unix time as a local time so %Z etc works correctly. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1532281 13f79535-47bb-0310-9956-ffa450edef68
* fcgistarter: Specify SO_REUSEADDR to allow starting a serverJeff Trawick2013-08-181-0/+5
| | | | | | | with old connections in TIME_WAIT. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1515050 13f79535-47bb-0310-9956-ffa450edef68
* ab: Fix potential buffer overflows when processing the T and XJeff Trawick2013-08-051-8/+6
| | | | | | | | | | | command-line options. PR: 55360 Submitted by: Mike Rumph <mike.rumph oracle.com> Reviewed by: trawick git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1510707 13f79535-47bb-0310-9956-ffa450edef68
* Fix command line parsing. This was introduced in r1395253 when refactoring ↵Christophe Jaillet2013-07-161-1/+1
| | | | | | | | | the code. Untested PR 55264 <jrhett netconsonance com> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1503866 13f79535-47bb-0310-9956-ffa450edef68
* Make MSVC compilers happy.Guenter Knauf2013-06-181-0/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1494317 13f79535-47bb-0310-9956-ffa450edef68
* don't truncate the very first file opened (unless the truncate flag is there ↵Eric Covener2013-06-071-1/+1
| | | | | | too) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1490761 13f79535-47bb-0310-9956-ffa450edef68
* Fix commit 1465115. Christophe Jaillet2013-06-071-1/+0
| | | | | | truncpw was allocated from a pool and not via malloc git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1490507 13f79535-47bb-0310-9956-ffa450edef68
* rotatelogs: add -n number-of-files option to roate through a numberEric Covener2013-06-071-5/+34
| | | | | | | | | of fixed-name logfiles. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1490493 13f79535-47bb-0310-9956-ffa450edef68
* Add a new -l parameter in order not to check the length of the responses. ↵Christophe Jaillet2013-06-021-7/+20
| | | | | | | | This can be usefull with dynamic pages. PR9945, PR27888, PR42040 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1488644 13f79535-47bb-0310-9956-ffa450edef68
* Added header protection.Guenter Knauf2013-06-011-0/+6
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1488496 13f79535-47bb-0310-9956-ffa450edef68
* Check if malloc succeededChristophe Jaillet2013-06-011-0/+4
| | | | | | PR54344 [Bill Parker, wp02855 gmail com] git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1488492 13f79535-47bb-0310-9956-ffa450edef68
* 3rd patch from PR45355Christophe Jaillet2013-06-011-4/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1488471 13f79535-47bb-0310-9956-ffa450edef68
* Fixed include for Windows.Guenter Knauf2013-05-131-5/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1481677 13f79535-47bb-0310-9956-ffa450edef68
* htdigest: Fix buffer overflow when reading digestRainer Jung2013-04-251-1/+4
| | | | | | | | | password file with very long lines. PR 54893. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1475878 13f79535-47bb-0310-9956-ffa450edef68
* htpasswd: Add -v option to verify a passwordStefan Fritsch2013-04-053-48/+106
| | | | | | | htpasswd and htdbm could use some more refactoring... git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1465116 13f79535-47bb-0310-9956-ffa450edef68
* fix htpasswd/htdbm brown paper bag bugsStefan Fritsch2013-04-052-19/+15
| | | | | | | | | | - use the correct string to generate the hash from. PR 54735 - print error message instead of empty string while there, replace strdup + check for oom with apr_pstrdup git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1465115 13f79535-47bb-0310-9956-ffa450edef68
* remove unused variablesStefan Fritsch2013-04-052-2/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1465084 13f79535-47bb-0310-9956-ffa450edef68
* Use apr_file_printf(... "%pm"...) instead of explicit call to apr_strerrorChristophe Jaillet2013-04-041-15/+14
| | | | | | + add some spaces to improve formatting git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1464675 13f79535-47bb-0310-9956-ffa450edef68
* Use apr_file_printf(... "%pm"...) instead of explicit call to apr_strerrorChristophe Jaillet2013-04-042-56/+35
| | | | | | + add some spaces to improve formatting git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1464674 13f79535-47bb-0310-9956-ffa450edef68
* Use apr_file_printf(... "%pm"...) instead of explicit call to apr_strerrorChristophe Jaillet2013-04-021-7/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1463750 13f79535-47bb-0310-9956-ffa450edef68
* Use apr_snprintf(... "%pm"...) instead of explicit call to apr_strerrorChristophe Jaillet2013-04-021-4/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1463736 13f79535-47bb-0310-9956-ffa450edef68
* Remove useless tests.Christophe Jaillet2013-03-031-1/+1
| | | | | | | | | Turn if (*x && apr_isspace(*x)) into if (apr_isspace(*x)) git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1452128 13f79535-47bb-0310-9956-ffa450edef68
* The 2 first patches from PR45355 have been portedChristophe Jaillet2013-03-021-8/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1451849 13f79535-47bb-0310-9956-ffa450edef68
* * support/htcacheclean.c (main): Ensure -p was used before attemptingJoe Orton2013-01-211-4/+4
| | | | | | | to process URL arguments. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1436401 13f79535-47bb-0310-9956-ffa450edef68
* Fix htcacheclean list options "-a" and "-A".Rainer Jung2013-01-141-1/+1
| | | | | | | No filetype without APR_FINFO_TYPE. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1433001 13f79535-47bb-0310-9956-ffa450edef68
* htdbm, htpasswd: print error message if out of memoryStefan Fritsch2012-12-254-0/+28
| | | | | | | PR: 54345 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1425775 13f79535-47bb-0310-9956-ffa450edef68
* Exit with error message if out of memStefan Fritsch2012-12-251-2/+13
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1425772 13f79535-47bb-0310-9956-ffa450edef68
* ab: add the possibility to define a socket timeout (-s timeout)Christophe Jaillet2012-12-171-4/+11
| | | | | | | | | | | | | | | [Guido Serra <zeph fsfe org>] Also some changes In usage(): - reword -t option to be more clear with the new -s - add missing -q - add the new -s option - reword some options to better match online documentation ab.xml claimed that -s was already there, but nothing in the code looks like that. So, I guess it only landed on the online doc... git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1422937 13f79535-47bb-0310-9956-ffa450edef68