httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <>
Subject Re: ab hang
Date Sat, 18 Oct 2003 12:22:55 GMT
Gregory (Grisha) Trubetskoy wrote:
> Has anyone seen this? Having checked everything possible short of
> debugging ab itself, I don't have a clue.

ab is busted :(

>  $ ./ab
>  This is ApacheBench, Version 2.0.40-dev <$Revision: $> apache-2.0
>  Copyright (c) 1996 Adam Twiss, Zeus Technology Ltd,
>  Copyright (c) 1998-2002 The Apache Software Foundation,
>  Benchmarking (be patient)...apr_poll: The timeout specified has expired (70007)

ab started failing with 2.0.47.  It had been converted to do non-blocking 
connect some time ago, but non-blocking connect was busted in APR (at least on 
Unix).  Once APR was fixed, some holes were exposed in ab.

There is one (?) fix in 2.0.48-dev that helps the most common hole I've seen. 
There is another change in 2.1-dev (needs another vote to backport) that fills 
another hole.  I still occasionally get a failure with some mishandling of 
EISCONN.  I suspect that APR needs to check for this when apr_connect() is 
re-issued on a non-blocking socket and realize that everything is hunky dory.

View raw message