billbarker 2002/12/22 17:35:09 Modified: coyote/src/java/org/apache/coyote/tomcat5 CoyoteConnector.java Log: Port patch from tomcat4. Revision Changes Path 1.7 +26 -4 jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat5/CoyoteConnector.java Index: CoyoteConnector.java =================================================================== RCS file: /home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat5/CoyoteConnector.java,v retrieving revision 1.6 retrieving revision 1.7 diff -u -r1.6 -r1.7 --- CoyoteConnector.java 18 Dec 2002 18:11:10 -0000 1.6 +++ CoyoteConnector.java 23 Dec 2002 01:35:09 -0000 1.7 @@ -281,6 +281,11 @@ */ private boolean disableUploadTimeout = false; + /** + * Maximum number of Keep-Alive requests to honor per connection. + */ + private int maxKeepAliveRequests = 100; + /** * Has this component been initialized yet? @@ -771,6 +776,21 @@ disableUploadTimeout = isDisabled; } + + /** + * Return the maximum number of Keep-Alive requests to honor per connection. + */ + public int getMaxKeepAliveRequests() { + return maxKeepAliveRequests; + } + + /** + * Set the maximum number of Keep-Alive requests to honor per connection. + */ + public void setMaxKeepAliveRequests(int mkar) { + maxKeepAliveRequests = mkar; + } + /** * Return the scheme that will be assigned to requests received * through this connector. Default value is "http". @@ -993,6 +1013,8 @@ "" + connectionTimeout); IntrospectionUtils.setProperty(protocolHandler, "disableUploadTimeout", "" + disableUploadTimeout); + IntrospectionUtils.setProperty(protocolHandler, "maxKeepAliveRequests", + "" + maxKeepAliveRequests); IntrospectionUtils.setProperty(protocolHandler, "compression", compression); if (address != null) {
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>