commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject cvs commit: jakarta-commons/httpclient/src/java/org/apache/commons/httpclient HttpClient.java
Date Mon, 08 Mar 2004 16:33:38 GMT
olegk       2004/03/08 08:33:38

  Modified:    httpclient/src/java/org/apache/commons/httpclient Tag:
                        HTTPCLIENT_2_0_BRANCH HttpClient.java
  Log:
  PR #27242 ("Socket Closed" IOException thrown by HttpConnection)
  
  Changelog:
  * HttpClient#executeMethod changed to perform stale connection check prior to setting socket
timeout
  
  Contributed by Oleg Kalnichevski
  
  Revision  Changes    Path
  No                   revision
  No                   revision
  1.76.2.5  +6 -6      jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpClient.java
  
  Index: HttpClient.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpClient.java,v
  retrieving revision 1.76.2.4
  retrieving revision 1.76.2.5
  diff -u -r1.76.2.4 -r1.76.2.5
  --- HttpClient.java	22 Feb 2004 18:21:13 -0000	1.76.2.4
  +++ HttpClient.java	8 Mar 2004 16:33:38 -0000	1.76.2.5
  @@ -623,8 +623,6 @@
               
               method.setStrictMode(strictMode);
               
  -            connection.setSoTimeout(soTimeout);
  -            
               if (!connection.isOpen()) {
                   connection.setConnectionTimeout(connectionTimeout);
                   connection.open();
  @@ -632,6 +630,8 @@
                       method = new ConnectMethod(method);
                   }
               }
  +            connection.setSoTimeout(soTimeout);
  +            
           } catch (IOException e) {
               connection.releaseConnection();
               throw e;
  
  
  

---------------------------------------------------------------------
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