Bug 52851 - Core TimeOut directive doesn't work
Summary: Core TimeOut directive doesn't work
Status: NEW
Alias: None
Product: Apache httpd-2
Classification: Unclassified
Component: Core (show other bugs)
Version: 2.4.1
Hardware: PC Linux
: P2 normal (vote)
Target Milestone: ---
Assignee: Apache HTTPD Bugs Mailing List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-07 23:44 UTC by robert
Modified: 2012-03-08 00:58 UTC (History)
0 users



Attachments

Note You need to log in before you can comment on or make changes to this bug.
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