summaryrefslogtreecommitdiffstats
path: root/support/ab.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Fix spelling errors found by codespell. [skip ci]Mike Rumph2020-02-131-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1873985 13f79535-47bb-0310-9956-ffa450edef68
* ab.c: Replace zeustech.net with web archive linkEric Covener2019-12-271-3/+4
| | | | | | | | | | | | | closes #84 https://github.com/apache/httpd/pull/84 https://issues.apache.org/jira/browse/LEGAL-502 Submitted By: Josua Schmid <josua.schmid renuo.ch> git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1872033 13f79535-47bb-0310-9956-ffa450edef68
* Fix a typoChristophe Jaillet2019-09-201-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1867257 13f79535-47bb-0310-9956-ffa450edef68
* ab: Add client certificate support.Graham Leggett2018-09-231-1/+26
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1841784 13f79535-47bb-0310-9956-ffa450edef68
* ab: Disable printing temp key for OpenSSL beforeRainer Jung2018-03-161-2/+6
| | | | | | | | version 1.0.2. SSL_get_server_tmp_key is not available there. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1826930 13f79535-47bb-0310-9956-ffa450edef68
* ab: follow up to r1738415: handle any tmp key id.Yann Ylavic2018-03-151-0/+5
| | | | | | | Otherwise, we print garbage (e.g. for X25519). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1826880 13f79535-47bb-0310-9956-ffa450edef68
* LibreSSL doesn't have or require applink.cGregg Lewis Smith2018-01-211-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1821767 13f79535-47bb-0310-9956-ffa450edef68
* ab: follow up to r1811664.Yann Ylavic2017-11-021-5/+3
| | | | | | | | | apr_socket_send() can return both an error and data, account for data in the latter case (i.e. let next call fail, if any). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1814118 13f79535-47bb-0310-9956-ffa450edef68
* ab: Make the TLS layer aware that the underlying socket is nonblocking,Yann Ylavic2017-10-101-18/+49
| | | | | | | | | and use/handle POLLOUT where needed to avoid busy IOs and recover write errors when appropriate. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1811664 13f79535-47bb-0310-9956-ffa450edef68
* ab: Keep reading nonblocking to exhaust TCP or SSL buffers when previousYann Ylavic2017-10-101-0/+5
| | | | | | | | | read was incomplete (the SSL case can cause the next poll() to timeout since data are buffered already). PR 61301 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1811649 13f79535-47bb-0310-9956-ffa450edef68
* mod_ssl, ab: compatibility with LibreSSL. PR 61184.Yann Ylavic2017-07-301-0/+8
| | | | | | | | | | | | | | | LibreSSL defines OPENSSL_VERSION_NUMBER = 2.0, but is not compatible with all of the latest OpenSSL 1.1 API. Address this by defining MODSSL_USE_OPENSSL_PRE_1_1_API which is true for anything but OpenSSL >= 1.1 (for now). Proposed by: Bernard Spil <brnrd freebsd.org> Reviewed by: ylavic git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1803396 13f79535-47bb-0310-9956-ffa450edef68
* ab: move option processing for setting a customRainer Jung2017-05-281-4/+4
| | | | | | | HTTP method outside of the HTTPS only handling. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1796493 13f79535-47bb-0310-9956-ffa450edef68
* ab: don't call malloc_init for OpenSSL 1.1.0Jacob Champion2017-05-221-2/+0
| | | | | | | | | | | | | | | Patch by rjung. The 1.1.0 compatibility macro for OpenSSL_malloc_init() causes problems when mixed with procedure linkage stubs with some toolchains (e.g. GCC). OpenSSL's malloc implementation doesn't recognize that the PLT stub points back to it, which leads to infinite recursion. Since the 1.1.0 documentation states that calling this function explicitly is no longer necessary except "in certain shared-library situations"(?), get rid of it. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1795830 13f79535-47bb-0310-9956-ffa450edef68
* ab: follow up to r1750854: still better naming, and a C89 fix.Yann Ylavic2016-07-011-9/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1750960 13f79535-47bb-0310-9956-ffa450edef68
* ab: follow up to r1750854: some comments and better naming.Yann Ylavic2016-07-011-10/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1750955 13f79535-47bb-0310-9956-ffa450edef68
* ab: follow up to r1750854.Yann Ylavic2016-07-011-16/+25
| | | | | | Use SNI when available by default, and invert -I logic to now disable it. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1750947 13f79535-47bb-0310-9956-ffa450edef68
* ab: follow up to r1750854: put the -I at the right place for apr_getopt().Yann Ylavic2016-06-301-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1750855 13f79535-47bb-0310-9956-ffa450edef68
* ab: add SNI support when available.Yann Ylavic2016-06-301-2/+47
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1750854 13f79535-47bb-0310-9956-ffa450edef68
* Prepare to backport, this is not specific to VS 2015...William A. Rowe Jr2016-06-141-1/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1748448 13f79535-47bb-0310-9956-ffa450edef68
* PR59630: include OpenSSL_Applink when compiling on Visual Studio 2015 and upGregg Lewis Smith2016-05-271-0/+4
| | | | | | | | Submitted By: Jan Ehrhardt <phpdev ehrhardt.nl> Committed By: gsmith git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1745767 13f79535-47bb-0310-9956-ffa450edef68
* ab: follow up to r1738415: EC_curve_nid2nist() available in OpenSSL-1.0.2 ↵Yann Ylavic2016-04-291-1/+3
| | | | | | and later. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1741566 13f79535-47bb-0310-9956-ffa450edef68
* print Server Temp Key information.Jean-Frederic Clere2016-04-101-0/+37
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1738415 13f79535-47bb-0310-9956-ffa450edef68
* Support for OpenSSL 1.1.0:Rainer Jung2016-03-201-2/+38
| | | | | | | | | | - ab: use new API SSL_CTX_set_max_proto_version() and SSL_CTX_set_min_proto_version() in combination with TLS_client_method() instead of the old deprecated methods. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1735891 13f79535-47bb-0310-9956-ffa450edef68
* ab: Use caseless matching for HTTP tokens (e.g. content-length).Yann Ylavic2016-03-041-14/+42
| | | | | | PR 59111. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1733537 13f79535-47bb-0310-9956-ffa450edef68
* Support for OpenSSL 1.1.0Rainer Jung2016-02-071-0/+6
| | | | | | | - ab git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1728907 13f79535-47bb-0310-9956-ffa450edef68
* Support compilation against libssl built with OPENSSL_NO_SSL3,Kaspar Brand2015-09-191-1/+9
| | | | | | | | and change the compiled-in default for SSL[Proxy]Protocol to "all -SSLv3", in accordance with RFC 7568. PR 58349, PR 57120. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1703952 13f79535-47bb-0310-9956-ffa450edef68
* Silence a sparse warning about inconsistent indentingChristophe Jaillet2015-08-311-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1700320 13f79535-47bb-0310-9956-ffa450edef68
* ab: Add missing longest request (100%) to CSV export.Yann Ylavic2015-02-241-1/+1
| | | | | | | | Submitted by: Marcin Fabrykowski <bugzilla fabrykowski.pl> Committed by: ylavic git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1661913 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
* 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
* * 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
* 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
* 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
* 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
* 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
* 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
* Allow forced setting of TLS1.1 and TLS1.2 protocols withKaspar Brand2012-10-071-4/+25
| | | | | | | | | | | | | the -f command-line switch, and adapt the output to more accurately report what SSL/TLS protocol was negotiated (use SSL_get_version() instead of SSL_CIPHER_get_version()). PR: 53916 Submitted by: Nicolás Pernas Maradei <nico emutex com> Reviewed/amended by: Kaspar Brand git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1395225 13f79535-47bb-0310-9956-ffa450edef68
* ab: Fix read failure when targeting SSL server.Jeff Trawick2012-08-101-1/+11
| | | | git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1371791 13f79535-47bb-0310-9956-ffa450edef68
* When -B is specified, search for a host address in theJeff Trawick2012-07-211-1/+3
| | | | | | | | same family as the specified outbound interface. If impossible, fail at name resolution instead of bind(). git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1364133 13f79535-47bb-0310-9956-ffa450edef68
* * support/ab.c (test, start_connect): Only bind the local end of theJoe Orton2012-06-191-9/+13
| | | | | | | socket (and look up an address for it) if -B is specified. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1351737 13f79535-47bb-0310-9956-ffa450edef68
* If MaxMemFree is set, set SSL_MODE_RELEASE_BUFFERS in mod_ssl.Stefan Fritsch2011-10-011-0/+4
| | | | | | | | | | Always set SSL_MODE_RELEASE_BUFFERS in ab. PR: 51618 Submitted by: Cristian Rodríguez <crrodriguez opensuse org>, Stefan Fritsch git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1178079 13f79535-47bb-0310-9956-ffa450edef68
* More cleanup: Expand tabs and some more indentation fixesStefan Fritsch2011-09-231-1/+1
| | | | | | | No functional change git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1174929 13f79535-47bb-0310-9956-ffa450edef68
* Cleanup effort in prep for GA push:Jim Jagielski2011-09-231-9/+9
| | | | | | | | Trim trailing whitespace... no func change git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1174751 13f79535-47bb-0310-9956-ffa450edef68