From jihuang@140-109-226-121.adsl.sinica.edu.tw  Tue Sep 16 06:22:52 2003
Return-Path: <jihuang@140-109-226-121.adsl.sinica.edu.tw>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id AEC8E16A4B3
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 16 Sep 2003 06:22:52 -0700 (PDT)
Received: from 140-109-226-121.adsl.sinica.edu.tw (140-109-226-121.adsl.sinica.edu.tw [140.109.226.121])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 6D9BD43FAF
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 16 Sep 2003 06:22:50 -0700 (PDT)
	(envelope-from jihuang@140-109-226-121.adsl.sinica.edu.tw)
Received: from 140-109-226-121.adsl.sinica.edu.tw (localhost [127.0.0.1])
	by 140-109-226-121.adsl.sinica.edu.tw (8.12.9/8.12.9) with ESMTP id h8GDO6Ck084859
	for <FreeBSD-gnats-submit@freebsd.org>; Tue, 16 Sep 2003 21:24:06 +0800 (CST)
	(envelope-from jihuang@140-109-226-121.adsl.sinica.edu.tw)
Received: (from jihuang@localhost)
	by 140-109-226-121.adsl.sinica.edu.tw (8.12.9/8.12.9/Submit) id h8GDO5VU084858;
	Tue, 16 Sep 2003 21:24:05 +0800 (CST)
Message-Id: <200309161324.h8GDO5VU084858@140-109-226-121.adsl.sinica.edu.tw>
Date: Tue, 16 Sep 2003 21:24:05 +0800 (CST)
From: June-Yen Huang <jihuang@iis.sinica.edu.tw>
Reply-To: June-Yen Huang <jihuang@iis.sinica.edu.tw>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: www/apache2: Apache-2.0.47 ab Utility does Not work
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         56922
>Category:       ports
>Synopsis:       www/apache2: Apache-2.0.47 ab Utility does Not work
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Sep 16 06:30:10 PDT 2003
>Closed-Date:    Sun Nov 02 14:09:37 PST 2003
>Last-Modified:  Sun Nov 02 14:09:37 PST 2003
>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@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:
State-Changed-From-To: open->closed 
State-Changed-By: linimon 
State-Changed-When: Sun Nov 2 14:09:11 PST 2003 
State-Changed-Why:  
Maintainer reports that most of the ab bugs have been 
fixed in the recently-imported 2.0.48, including this one. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=56922 
>Unformatted:
