chirino 2005/01/18 19:12:22
Modified: modules/core/src/java/org/openejb/client
SocketConnectionFactory.java
Log:
Enabled TcpNoDelay on the sockets used by openejb.
Revision Changes Path
1.4 +2 -1
openejb/modules/core/src/java/org/openejb/client/SocketConnectionFactory.java
Index: SocketConnectionFactory.java
===================================================================
RCS file:
/home/projects/openejb/scm/openejb/modules/core/src/java/org/openejb/client/SocketConnectionFactory.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- SocketConnectionFactory.java 10 Mar 2004 22:04:58 -0000 1.3
+++ SocketConnectionFactory.java 19 Jan 2005 00:12:22 -0000 1.4
@@ -93,6 +93,7 @@
/*-----------------------*/
try{
socket = new Socket(server.address, server.port);
+ socket.setTcpNoDelay(true);
} catch (IOException e){
throw new IOException("Cannot access server:
"+server.address+":"+server.port+" Exception: "+ e.getClass().getName() +" : "+
e.getMessage());