commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mbe...@apache.org
Subject cvs commit: jakarta-commons/httpclient/src/java/org/apache/commons/httpclient MultiThreadedHttpConnectionManager.java
Date Fri, 27 Jun 2003 03:20:32 GMT
mbecke      2003/06/26 20:20:32

  Modified:    httpclient/src/java/org/apache/commons/httpclient
                        MultiThreadedHttpConnectionManager.java
  Log:
  DEFAULT_MAX_HOST_CONNECTIONS and DEFAULT_MAX_TOTAL_CONNECTIONS
are now public and static.
  PR: 21130
  Submitted by: Gary Gregory
  
  Revision  Changes    Path
  1.17      +11 -6     jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/MultiThreadedHttpConnectionManager.java
  
  Index: MultiThreadedHttpConnectionManager.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/MultiThreadedHttpConnectionManager.java,v
  retrieving revision 1.16
  retrieving revision 1.17
  diff -u -r1.16 -r1.17
  --- MultiThreadedHttpConnectionManager.java	8 May 2003 17:33:52 -0000	1.16
  +++ MultiThreadedHttpConnectionManager.java	27 Jun 2003 03:20:32 -0000	1.17
  @@ -96,13 +96,18 @@
       /** Log object for this class. */
       private static final Log LOG = LogFactory.getLog(MultiThreadedHttpConnectionManager.class);
   
  -    // ----------------------------------------------------- Instance Variables
  +    /** The default maximum number of connections allowed per host */
  +    public static final int DEFAULT_MAX_HOST_CONNECTIONS = 2;   // Per RFC 2616 sec 8.1.4
  +
  +    /** The default maximum number of connections allowed overall */
  +    public static final int DEFAULT_MAX_TOTAL_CONNECTIONS = 20;
   
  +    // ----------------------------------------------------- Instance Variables
       /** Maximum number of connections allowed per host */
  -    private int maxHostConnections = 2;   // Per RFC 2616 sec 8.1.4
  +    private int maxHostConnections = DEFAULT_MAX_HOST_CONNECTIONS;
   
       /** Maximum number of connections allowed overall */
  -    private int maxTotalConnections = 20;
  +    private int maxTotalConnections = DEFAULT_MAX_TOTAL_CONNECTIONS;
   
       /** Connection Pool */
       private ConnectionPool connectionPool;
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message