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:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>