[EMAIL PROTECTED] wrote:

>   Modified:    coyote/src/java/org/apache/coyote/tomcat4
>                         CoyoteConnector.java
>   Log:
>   Adding the 'maxKeepAliveRequests' attribute to the Connector.  The code
>   in the Protocol and Processor has been there for a very long time.
>   
>   I'd be +1 to changing the 4.x and 4.x Connectors to (like the 3.3
>   Connector) attempt to pass all configuration attributes to the Protocol,
>   and let the Protocol decide if it care about it.

+1 ( especially for 5.0 ).


Costin

>   
>   Revision  Changes    Path
>   1.20      +25 -4    
>   
jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat4/CoyoteConnector.java
>   
>   Index: CoyoteConnector.java
>   ===================================================================
>   RCS file:
>   
/home/cvs/jakarta-tomcat-connectors/coyote/src/java/org/apache/coyote/tomcat4/CoyoteConnector.java,v
>   retrieving revision 1.19 retrieving revision 1.20
>   diff -u -r1.19 -r1.20
>   --- CoyoteConnector.java    18 Dec 2002 18:11:10 -0000      1.19
>   +++ CoyoteConnector.java    23 Dec 2002 01:32:24 -0000      1.20
>   @@ -305,6 +305,11 @@
>         */
>        private boolean disableUploadTimeout = false;
>    
>   +    /**
>   +     * Maximum number of Keep-Alive requests to honor per connection.
>   +     */
>   +    private int maxKeepAliveRequests = 100;
>   +
>    
>        /**
>         * Compression value.
>   @@ -778,6 +783,20 @@
>        }
>    
>        /**
>   +     * 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".
>         */
>   @@ -1021,6 +1040,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]>

Reply via email to