Bug 52851

Summary: Core TimeOut directive doesn't work
Product: Apache httpd-2 Reporter: robert <rsm219>
Component: CoreAssignee: Apache HTTPD Bugs Mailing List <bugs>
Status: NEW ---    
Severity: normal    
Priority: P2    
Version: 2.4.1   
Target Milestone: ---   
Hardware: PC   
OS: Linux   

Description robert 2012-03-07 23:44:59 UTC
Seems like TimeOut in httpd.conf doesn't work. According to the manual it will decide "in mod_cgi, the length of time to wait for output from a CGI script." However, I wrote a python script containing a very long loop (at least last for more than 3 minutes) before print some strings, and then configure the TimeOut to 1 (second). It turns out that when requesting that python script, the httpd will just keep waiting for the output, and the waiting time is definitely more than 1 second. In addition, after terminate the httpd with apachectl -k stop, the httpd progress is still running for a while.

I do notice that there was another report about this issue https://issues.apache.org/bugzilla/show_bug.cgi?id=44270

But I do send httpd requests, instead of just "telneting to 80", and didn't see anything to do with AcceptFilter set.

Thanks.

Robert
Comment 1 Tianyin Xu 2012-03-08 00:18:12 UTC
Hi, Robert,

Can you provide your configuration file (so that I can replay it)? 
Thanks a lot!

Tianyin
Comment 2 robert 2012-03-08 00:58:30 UTC
After enable mod_cgi, just add
"
<Directory "PATH/TO/YOUR/SCRIPT">
     Options +ExecCGI
     AddHandler cgi-script .cgi .pl .py
 </Directory>
 
TimeOut 1
"

to the httpd.conf file, and start the httpd server.


(In reply to comment #1)
> Hi, Robert,
> 
> Can you provide your configuration file (so that I can replay it)? 
> Thanks a lot!
> 
> Tianyin