mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-19 15:05:36 +02:00
[257666] [multithread] TCP/IP socket connection is not closed
[257666] modified original patch to simplify
This commit is contained in:
parent
f6194a8283
commit
cd82a6532a
1 changed files with 17 additions and 0 deletions
|
@ -15,10 +15,13 @@
|
|||
* David McKnight (IBM) - [225507][api][breaking] RSE dstore API leaks non-API types
|
||||
* Noriaki Takatsu (IBM) - [227905] prevent double invocations of finished in ConncetionEstablisher
|
||||
* David McKnight (IBM) - [226561] [apidoc] Add API markup to RSE Javadocs where extend / implement is allowed
|
||||
* Noriaki Takatsu (IBM) - [257666] [multithread] TCP/IP socket connection is not closed
|
||||
* David McKnight (IBM) - [257666] modified original patch to simplify
|
||||
*******************************************************************************/
|
||||
|
||||
package org.eclipse.dstore.core.server;
|
||||
|
||||
import java.io.IOException;
|
||||
import java.net.Socket;
|
||||
|
||||
import org.eclipse.dstore.core.model.DataElement;
|
||||
|
@ -82,6 +85,13 @@ public class ServerReceiver extends Receiver
|
|||
_dataStore.setConnected(false);
|
||||
super.finish();
|
||||
_connection.finished(this);
|
||||
try
|
||||
{
|
||||
socket().close();
|
||||
}
|
||||
catch (IOException e){
|
||||
System.out.println(e);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -93,6 +103,13 @@ public class ServerReceiver extends Receiver
|
|||
e.printStackTrace();
|
||||
System.out.println(e);
|
||||
_connection.finished(this);
|
||||
try
|
||||
{
|
||||
socket().close();
|
||||
}
|
||||
catch (IOException IOe){
|
||||
System.out.println(IOe);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue