Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorslewis2011-10-28 22:32:27 +0000
committerslewis2011-10-28 22:32:27 +0000
commit561b41e2b54bd1bc2a254491714f4b66a58e3a3e (patch)
tree0788581650db4457c63b8170b4facfef6a684811
parent802a36515ed19c09ecc09161d959a505d427a651 (diff)
downloadorg.eclipse.ecf-561b41e2b54bd1bc2a254491714f4b66a58e3a3e.tar.gz
org.eclipse.ecf-561b41e2b54bd1bc2a254491714f4b66a58e3a3e.tar.xz
org.eclipse.ecf-561b41e2b54bd1bc2a254491714f4b66a58e3a3e.zip
Fix for bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=362071
-rw-r--r--framework/bundles/org.eclipse.ecf.provider/src/org/eclipse/ecf/provider/comm/tcp/Client.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/framework/bundles/org.eclipse.ecf.provider/src/org/eclipse/ecf/provider/comm/tcp/Client.java b/framework/bundles/org.eclipse.ecf.provider/src/org/eclipse/ecf/provider/comm/tcp/Client.java
index cfc4ddc34..49bf76f9b 100644
--- a/framework/bundles/org.eclipse.ecf.provider/src/org/eclipse/ecf/provider/comm/tcp/Client.java
+++ b/framework/bundles/org.eclipse.ecf.provider/src/org/eclipse/ecf/provider/comm/tcp/Client.java
@@ -109,12 +109,12 @@ public final class Client implements ISynchAsynchConnection {
setupThreads();
}
- public Client(ISynchAsynchEventHandler handler, int maxmsgs) {
+ public Client(ISynchAsynchEventHandler handler, int keepAlive) {
if (handler == null)
throw new NullPointerException("event handler cannot be null"); //$NON-NLS-1$
this.handler = handler;
+ this.keepAlive = keepAlive;
containerID = handler.getEventHandlerID();
- maxMsg = maxmsgs;
this.properties = new HashMap();
}
@@ -179,8 +179,7 @@ public final class Client implements ISynchAsynchConnection {
fact = SocketFactory.getDefaultSocketFactory();
ConnectResultMessage res = null;
try {
- keepAlive = timeout;
- final Socket s = fact.createSocket(anURI.getHost(), anURI.getPort(), keepAlive);
+ final Socket s = fact.createSocket(anURI.getHost(), anURI.getPort(), timeout);
// Set socket options
setSocketOptions(s);
// Now we've got a connection so set our socket

Back to the top