summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2007-10-09 17:57:21 (EDT)
committerEike Stepper2007-10-09 17:57:21 (EDT)
commitb1c0229821cd456a00988344e5747d0bf952afaa (patch)
treecc53310ac28b2f36842145f7085741e4ab4dd370
parent53345927a79b9ac046b9c4859e1ddee0d2a220ed (diff)
downloadcdo-b1c0229821cd456a00988344e5747d0bf952afaa.zip
cdo-b1c0229821cd456a00988344e5747d0bf952afaa.tar.gz
cdo-b1c0229821cd456a00988344e5747d0bf952afaa.tar.bz2
[205877] NoConnectionPendingException in ConnectorTest
https://bugs.eclipse.org/bugs/show_bug.cgi?id=205877
-rw-r--r--plugins/org.eclipse.net4j.tcp/src/org/eclipse/net4j/internal/tcp/TCPConnector.java5
1 files changed, 5 insertions, 0 deletions
diff --git a/plugins/org.eclipse.net4j.tcp/src/org/eclipse/net4j/internal/tcp/TCPConnector.java b/plugins/org.eclipse.net4j.tcp/src/org/eclipse/net4j/internal/tcp/TCPConnector.java
index e58f08a..b194a82 100644
--- a/plugins/org.eclipse.net4j.tcp/src/org/eclipse/net4j/internal/tcp/TCPConnector.java
+++ b/plugins/org.eclipse.net4j.tcp/src/org/eclipse/net4j/internal/tcp/TCPConnector.java
@@ -30,6 +30,7 @@ import org.eclipse.internal.net4j.Connector;
import java.nio.ByteBuffer;
import java.nio.channels.ClosedChannelException;
+import java.nio.channels.NoConnectionPendingException;
import java.nio.channels.SelectionKey;
import java.nio.channels.SocketChannel;
import java.util.List;
@@ -137,6 +138,10 @@ public abstract class TCPConnector extends Connector implements ITCPConnector, I
return;
}
}
+ catch (NoConnectionPendingException ignore)
+ {
+ // This must be on server side
+ }
catch (java.net.ConnectException ex)
{
if (TRACER.isEnabled()) TRACER.trace(ex.getMessage());