ports/56922: Apache-2.0.47 ab Utility does Not work

June-Yen Huang jihuang at iis.sinica.edu.tw
Tue Sep 16 13:30:12 UTC 2003


>Number:         56922
>Category:       ports
>Synopsis:       Apache-2.0.47 ab Utility does Not work
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 16 06:30:10 PDT 2003
>Closed-Date:
>Last-Modified:
>Originator:     June-Yen Huang
>Release:        FreeBSD 5.1-RELEASE i386
>Organization:
Institute of Information Science, Academia Sinica
>Environment:
System: FreeBSD 140-109-226-121.adsl.sinica.edu.tw 5.1-RELEASE FreeBSD 5.1-RELEASE #4: Sun Jun 15 22:42:24 CST 2003 root at 140-109-226-121.adsl.sinica.edu.tw:/usr/obj/usr/src/sys/Betelgeuse i386


>Description:
	After installaing 2.0.47 ab doesn't work any more: it blocks after connecting to
	remote machine:

	ScreenShot:
	This is ApacheBench, Version 2.0.40-dev <$Revision: 1.121.2.1 $> apache-2.0
	Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
	Copyright (c) 1998-2002 The Apache Software Foundation, http://www.apache.org/

	Benchmarking www.XXXX.com (be patient)...

	until getting a: 

	Benchmarking www.XXXX.com (be patient)...apr_poll: The timeout specified has
	expired (70007)
>How-To-Repeat:
	Just Run ab for any web site.
>Fix:
	Add a kludge patch,

--- ab.c.orig   10 Jul 2003 19:16:35 -0000
+++ ab.c        11 Jul 2003 11:32:52 -0000
@@ -1268,7 +1268,7 @@
            c->state = STATE_CONNECTING;
            c->rwrite = 0;
             new_pollfd.desc_type = APR_POLL_SOCKET;
-            new_pollfd.reqevents = APR_POLLIN;
+            new_pollfd.reqevents = APR_POLLIN | APR_POLLOUT;
             new_pollfd.desc.s = c->aprsock;
             new_pollfd.client_data = c;
            apr_pollset_add(readbits, &new_pollfd);

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list