There is a bug in Apache 2.0.x. If you have a long running CGI script you'll see an error in your CGI logs:
The timeout specified has expired: ap_content_length_filter: apr_bucket_read() failed. This is why his script works properly under apache 1.3 and not 2.0.x -- because under Apache 2.0.x there comes a point where it just won't die.
Want to support the EFF and FSF by buying cool stuff? Click
here.