请教apache的timeout以及keepalive参数选择

请教apache的timeout以及keepalive参数选择

默认安装的apache2.0.59,正常使用一点问题没有。前两天无聊用sss扫描,结果扫描到http那段,突然发现ie打不开页面了...在服务器上通过netstat看,有很多我的本机到服务器的80端口链接,服务器这时候的状态很正常,cpu/ping延迟都不高,但是就是浏览器打不开页面。

QUOTE:
Timeout 15
KeepAlive On
MaxKeepAliveRequests 500
KeepAliveTimeout 15

看了以下默认的这四个参数,发现
Timeout=300
MaxKeepAliveRequests=100


怀疑是这个问题,将他改为了以上的设置,再次扫描,果然打开页面正常了。


所以就像请教一下大家,这个数值一般设置多少为好?服务器除了后台是动态php+mysql,其他均为静态html页面,绝大部分为内网访问,速度很快。

谢谢~~~
Timeout=300是默认设置,而我设置的15,会不会太少了呢...
The TimeOut directive currently defines the amount of time Apache will wait for three things:

   1. The total amount of time it takes to receive a GET request.
   2. The amount of time between receipt of TCP packets on a POST or PUT request.
   3. The amount of time between ACKs on transmissions of TCP packets in responses.

We plan on making these separately configurable at some point down the road. The timer used to default to 1200 before 1.2, but has been lowered to 300 which is still far more than necessary in most situations. It is not set any lower by default because there may still be odd places in the code where the timer is not reset when a packet is sent.

一直都没有好好看看手册
http://httpd.apache.org/docs/2.0/mod/core.html#timeout
刚看了看可能是这个问题,其实15s也不短了,但是貌似timeout设置不是很问题because there may still be odd places in the code where the timer is not reset when a packet is sent.
也就是说莫名奇妙的当发包后记数器没有重置