You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by ol...@apache.org on 2004/06/14 23:25:38 UTC

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

olegk       2004/06/14 14:25:38

  Modified:    httpclient/src/java/org/apache/commons/httpclient
                        HttpClient.java
  Log:
  Fixed the problem with HttpClient#setTimeout method backward incompatibility
  
  Contributed by Oleg Kalnichevski
  Reported by Mohammad Rezaei
  
  Revision  Changes    Path
  1.96      +5 -5      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.95
  retrieving revision 1.96
  diff -u -r1.95 -r1.96
  --- HttpClient.java	13 May 2004 04:03:25 -0000	1.95
  +++ HttpClient.java	14 Jun 2004 21:25:38 -0000	1.96
  @@ -268,7 +268,7 @@
        *
        */
       public synchronized void setTimeout(int newTimeoutInMilliseconds) {
  -        this.httpConnectionManager.getParams().setSoTimeout(newTimeoutInMilliseconds);
  +        this.params.setSoTimeout(newTimeoutInMilliseconds);
       }
   
       /**
  
  
  

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