1. 程式人生 > >Tomcat配置server.xml

Tomcat配置server.xml

一 connectionTimeout

1 官方解釋(http://tomcat.apache.org/tomcat-5.5-doc/config/http.html):
The number of milliseconds this Connector will wait, after accepting a connection, for the request URI line to be presented. The default value is 60000 (i.e. 60 seconds).(Connector從接受連線到提交URI的等待的時間)

2 詳細

當client與tomcat建立連線之後,在"connectionTimeout"時間之內,仍然沒有得到client的請求資料,此時連線將會被斷開.此值的設定需要考慮到網路穩定型,同時也有效能的考慮.它和tcp的配置選項中的"socket_timeout"仍有區別,connectionTimeout只會在連結建立之後,得到client傳送http-request資訊前有效.