summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-12-28 03:46:16 (EST)
committerEike Stepper2007-12-28 03:46:16 (EST)
commit03b3e11cc2ecc63d162b0200b85f9fab6190c6d7 (patch)
tree70ee7caf7b5db6be3e64744bbda87d9d195f7d59
parent4c9edef7b597816e853493c62957e28f558595af (diff)
downloadcdo-03b3e11cc2ecc63d162b0200b85f9fab6190c6d7.zip
cdo-03b3e11cc2ecc63d162b0200b85f9fab6190c6d7.tar.gz
cdo-03b3e11cc2ecc63d162b0200b85f9fab6190c6d7.tar.bz2
[213748] Connection delays with Windows Vista
https://bugs.eclipse.org/bugs/show_bug.cgi?id=213748
-rw-r--r--plugins/org.eclipse.net4j.tcp/src/org/eclipse/net4j/internal/tcp/TCPAcceptor.java3
-rw-r--r--plugins/org.eclipse.net4j.tcp/src/org/eclipse/net4j/internal/tcp/TCPClientConnector.java2
2 files changed, 5 insertions, 0 deletions
diff --git a/plugins/org.eclipse.net4j.tcp/src/org/eclipse/net4j/internal/tcp/TCPAcceptor.java b/plugins/org.eclipse.net4j.tcp/src/org/eclipse/net4j/internal/tcp/TCPAcceptor.java
index ed9fe8d..0d37bed 100644
--- a/plugins/org.eclipse.net4j.tcp/src/org/eclipse/net4j/internal/tcp/TCPAcceptor.java
+++ b/plugins/org.eclipse.net4j.tcp/src/org/eclipse/net4j/internal/tcp/TCPAcceptor.java
@@ -175,7 +175,10 @@ public class TCPAcceptor extends Acceptor implements ITCPAcceptor, ITCPSelectorL
TRACER.trace("Accepted socketChannel " + socketChannel); //$NON-NLS-1$
}
+// socketChannel.socket().setReuseAddress(true);
+// socketChannel.socket().setKeepAlive(true);
socketChannel.configureBlocking(false);
+
TCPServerConnector connector = new TCPServerConnector(this);
prepareConnector(connector);
connector.setSocketChannel(socketChannel);
diff --git a/plugins/org.eclipse.net4j.tcp/src/org/eclipse/net4j/internal/tcp/TCPClientConnector.java b/plugins/org.eclipse.net4j.tcp/src/org/eclipse/net4j/internal/tcp/TCPClientConnector.java
index ee4aec7..7194bde 100644
--- a/plugins/org.eclipse.net4j.tcp/src/org/eclipse/net4j/internal/tcp/TCPClientConnector.java
+++ b/plugins/org.eclipse.net4j.tcp/src/org/eclipse/net4j/internal/tcp/TCPClientConnector.java
@@ -30,6 +30,8 @@ public class TCPClientConnector extends TCPConnector
try
{
SocketChannel socketChannel = SocketChannel.open();
+// socketChannel.socket().setReuseAddress(true);
+// socketChannel.socket().setKeepAlive(true);
socketChannel.configureBlocking(false);
setSocketChannel(socketChannel);
}