You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by ma...@apache.org on 2002/04/01 04:27:17 UTC

cvs commit: jakarta-commons/httpclient/src/java/org/apache/commons/httpclient HttpConnectionManager.java

marcsaeg    02/03/31 18:27:17

  Modified:    httpclient/src/java/org/apache/commons/httpclient
                        HttpConnectionManager.java
  Log:
  Fixed invalid initial value for the number of connections when creating
  a new connection list.
  
  Revision  Changes    Path
  1.3       +8 -4      jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpConnectionManager.java
  
  Index: HttpConnectionManager.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpConnectionManager.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- HttpConnectionManager.java	28 Mar 2002 03:45:48 -0000	1.2
  +++ HttpConnectionManager.java	1 Apr 2002 02:27:17 -0000	1.3
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpConnectionManager.java,v 1.2 2002/03/28 03:45:48 marcsaeg Exp $
  - * $Revision: 1.2 $
  - * $Date: 2002/03/28 03:45:48 $
  + * $Header: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpConnectionManager.java,v 1.3 2002/04/01 02:27:17 marcsaeg Exp $
  + * $Revision: 1.3 $
  + * $Date: 2002/04/01 02:27:17 $
    * ====================================================================
    *
    * The Apache Software License, Version 1.1
  @@ -196,6 +196,10 @@
           }
           String key = host + ":" + port;
   
  +        if(log.isDebugEnabled()){
  +            log.debug("HttpConnectionManager.getConnection:  key = " + key);
  +        }
  +
           // Look for a list of connections for the given host:port
           LinkedList listConnections = null;
           synchronized(mapHosts){
  @@ -204,7 +208,7 @@
                   // First time for this host:port
                   listConnections = new LinkedList();
                   mapHosts.put(key, listConnections);
  -                mapNumConnections.put(key, new Integer(1));
  +                mapNumConnections.put(key, new Integer(0));
               }
           }
   
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>