billbarker    02/04/25 18:54:54

  Modified:    http11/src/java/org/apache/coyote/http11 Http11Protocol.java
  Log:
  If you add an attribute, it helps to be able to actually set it.
  
  Revision  Changes    Path
  1.10      +5 -0      
jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11/Http11Protocol.java
  
  Index: Http11Protocol.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-tomcat-connectors/http11/src/java/org/apache/coyote/http11/Http11Protocol.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- Http11Protocol.java       26 Apr 2002 01:50:32 -0000      1.9
  +++ Http11Protocol.java       26 Apr 2002 01:54:54 -0000      1.10
  @@ -164,6 +164,7 @@
       protected String sslImplementationName=null;
   
       private int maxKeepAliveRequests=100; // as in Apache HTTPD server
  +    private int      timeout = 300000;       // 5 minutes as in Apache HTTPD server
       private String reportedname;
       private int socketCloseDelay=-1;
   
  @@ -288,6 +289,9 @@
        return (ServerSocketFactory)chC.newInstance();
       }
   
  +    public void setTimeout( int timeouts ) {
  +     timeout = timeouts * 1000;
  +    }
       public void setReportedname( String reportedName) {
        reportedname = reportedName;
       }
  @@ -317,6 +321,7 @@
               Http11Processor  processor = new Http11Processor();
               processor.setAdapter( proto.adapter );
               processor.setMaxKeepAliveRequests( proto.maxKeepAliveRequests );
  +            processor.setTimeout( proto.timeout );
   
               //thData[0]=adapter;
               thData[1]=processor;
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to