commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From oglu...@apache.org
Subject cvs commit: jakarta-commons/httpclient/src/java/org/apache/commons/httpclient HttpConnection.java
Date Sun, 19 Jan 2003 15:05:15 GMT
oglueck     2003/01/19 07:05:15

  Modified:    httpclient/src/java/org/apache/commons/httpclient
                        HttpConnection.java
  Log:
  disable Nagles Algorithm
  
  Requested by: Juergen Pill
  Patch by: Oleg Kalnichevski
  bloody Sunday
  
  Revision  Changes    Path
  1.32      +14 -4     jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpConnection.java
  
  Index: HttpConnection.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/HttpConnection.java,v
  retrieving revision 1.31
  retrieving revision 1.32
  diff -u -r1.31 -r1.32
  --- HttpConnection.java	16 Jan 2003 13:28:39 -0000	1.31
  +++ HttpConnection.java	19 Jan 2003 15:05:15 -0000	1.32
  @@ -456,6 +456,16 @@
                   }
                   
               }
  +            
  +            /*
  +            "Nagling has been broadly implemented across networks, 
  +            including the Internet, and is generally performed by default 
  +            - although it is sometimes considered to be undesirable in 
  +            highly interactive environments, such as some client/server 
  +            situations. In such cases, nagling may be turned off through 
  +            use of the TCP_NODELAY sockets option." */
  +            
  +            _socket.setTcpNoDelay(true);
               _socket.setSoTimeout(_so_timeout);
               _input = _socket.getInputStream();
               _output = _socket.getOutputStream();
  
  
  

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