From: Jeff Trawick Date: Tue, 29 Jul 2003 18:25:15 +0000 (+0000) Subject: ab: Work over non-loopback on Unix again. X-Git-Tag: pre_ajp_proxy~1327 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=548da410d339493d0e7513a4b20eaa635a93f3d4;p=apache ab: Work over non-loopback on Unix again. (Broken as of 2.0.47 due to dependence on an APR bug which was fixed in 2.0.47.) PR: 21495 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@100846 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/CHANGES b/CHANGES index 8f0ef853b5..082abd70fd 100644 --- a/CHANGES +++ b/CHANGES @@ -2,6 +2,8 @@ Changes with Apache 2.1.0-dev [Remove entries to the current 2.0 section below, when backported] + *) ab: Work over non-loopback on Unix again. PR 21495. [Jeff Trawick] + *) mod_rewrite: In external rewrite maps lookup keys containing a newline now cause a lookup failure. PR 14453. [Cedric Gavage , André Malo] diff --git a/support/ab.c b/support/ab.c index dd19510b0e..d8208e69e1 100644 --- a/support/ab.c +++ b/support/ab.c @@ -1268,7 +1268,7 @@ static void start_connect(struct connection * c) c->state = STATE_CONNECTING; c->rwrite = 0; new_pollfd.desc_type = APR_POLL_SOCKET; - new_pollfd.reqevents = APR_POLLIN; + new_pollfd.reqevents = APR_POLLOUT | APR_POLLIN; new_pollfd.desc.s = c->aprsock; new_pollfd.client_data = c; apr_pollset_add(readbits, &new_pollfd); @@ -1793,14 +1793,14 @@ static void test(void) static void copyright(void) { if (!use_html) { - printf("This is ApacheBench, Version %s\n", AP_AB_BASEREVISION " <$Revision: 1.127 $> apache-2.0"); + printf("This is ApacheBench, Version %s\n", AP_AB_BASEREVISION " <$Revision: 1.128 $> apache-2.0"); printf("Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/\n"); printf("Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/\n"); printf("\n"); } else { printf("

\n"); - printf(" This is ApacheBench, Version %s <%s> apache-2.0
\n", AP_AB_BASEREVISION, "$Revision: 1.127 $"); + printf(" This is ApacheBench, Version %s <%s> apache-2.0
\n", AP_AB_BASEREVISION, "$Revision: 1.128 $"); printf(" Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
\n"); printf(" Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/
\n"); printf("

\n

\n");