You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-dev@jakarta.apache.org by ju...@apache.org on 2002/04/18 10:12:08 UTC

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

juergen     02/04/18 01:12:08

  Modified:    src/webdav/client/src/org/apache/commons/httpclient
                        HttpClient.java
  Log:
  use a buffered input stream for performance reasons. Reported by wolfgang.theilmann@sap.com, thanks.
  
  Revision  Changes    Path
  1.11      +5 -4      jakarta-slide/src/webdav/client/src/org/apache/commons/httpclient/HttpClient.java
  
  Index: HttpClient.java
  ===================================================================
  RCS file: /home/cvs/jakarta-slide/src/webdav/client/src/org/apache/commons/httpclient/HttpClient.java,v
  retrieving revision 1.10
  retrieving revision 1.11
  diff -u -r1.10 -r1.11
  --- HttpClient.java	28 Mar 2002 06:12:07 -0000	1.10
  +++ HttpClient.java	18 Apr 2002 08:12:08 -0000	1.11
  @@ -1,7 +1,7 @@
   /*
  - * $Header: /home/cvs/jakarta-slide/src/webdav/client/src/org/apache/commons/httpclient/HttpClient.java,v 1.10 2002/03/28 06:12:07 jericho Exp $
  - * $Revision: 1.10 $
  - * $Date: 2002/03/28 06:12:07 $
  + * $Header: /home/cvs/jakarta-slide/src/webdav/client/src/org/apache/commons/httpclient/HttpClient.java,v 1.11 2002/04/18 08:12:08 juergen Exp $
  + * $Revision: 1.11 $
  + * $Date: 2002/04/18 08:12:08 $
    *
    * ====================================================================
    *
  @@ -66,6 +66,7 @@
   import java.io.IOException;
   import java.io.InputStream;
   import java.io.OutputStream;
  +import java.io.BufferedInputStream;
   import java.util.*;
   import java.security.Principal;
   import java.text.DateFormat;
  @@ -837,7 +838,7 @@
                       socket = new Socket(this.proxyHost, this.proxyPort);
                   }
               }
  -            input = socket.getInputStream();
  +            input = new BufferedInputStream(socket.getInputStream(), 8192);
               output = socket.getOutputStream();
           } catch (IOException e) {
               if (connectionInterceptor != null) {
  
  
  

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