commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sul...@apache.org
Subject cvs commit: jakarta-commons/httpclient/src/java/org/apache/commons/httpclient HttpClient.java
Date Fri, 09 Aug 2002 04:44:16 GMT
sullis      2002/08/08 21:44:16

  Modified:    httpclient/src/java/org/apache/commons/httpclient
                        HttpClient.java
  Log:
  renamed timeout variable (for clarity).  Added additional javadocs for timeout
  
  Revision  Changes    Path
  1.54      +13 -9     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.53
  retrieving revision 1.54
  diff -u -r1.53 -r1.54
  --- HttpClient.java	28 Jul 2002 18:08:57 -0000	1.53
  +++ HttpClient.java	9 Aug 2002 04:44:16 -0000	1.54
  @@ -114,7 +114,7 @@
   
       private SSLSocketFactory sslSocketFactory = null;
   
  -    private int timeout = 0;
  +    private int timeoutInMilliseconds = 0;
   
       // ------------------------------------------------------------- Properties
   
  @@ -152,10 +152,14 @@
   
       /**
        * Sets the SO_TIMEOUT which is the timeout for waiting for data.
  -     * @param timeout Timeout in milliseconds
  +     * 
  +     * A timeout value of zero is interpreted as an infinite timeout.
  +     * 
  +     * @param newTimeoutInMilliseconds Timeout in milliseconds
  +     * 
        */
  -    public void setTimeout(int timeout) {
  -        this.timeout = timeout;
  +    public void setTimeout(int newTimeoutInMilliseconds) {
  +        this.timeoutInMilliseconds = newTimeoutInMilliseconds;
       }
   
       // --------------------------------------------------------- Public Methods
  @@ -346,7 +350,7 @@
   
           if (!connection.isOpen()) {
               connection.setSSLSocketFactory(sslSocketFactory);
  -            connection.setSoTimeout(timeout);
  +            connection.setSoTimeout(timeoutInMilliseconds);
               connection.open();
               if (connection.isProxied() && connection.isSecure()) {
                   method = new ConnectMethod(method);
  
  
  

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


Mime
View raw message