Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 258993
Collapse All | Expand All

(-)src/org/eclipse/dstore/core/server/ServerReceiver.java (+17 lines)
Lines 15-24 Link Here
15
 * David McKnight   (IBM) - [225507][api][breaking] RSE dstore API leaks non-API types
15
 * David McKnight   (IBM) - [225507][api][breaking] RSE dstore API leaks non-API types
16
 * Noriaki Takatsu  (IBM) - [227905] prevent double invocations of finished in ConncetionEstablisher
16
 * Noriaki Takatsu  (IBM) - [227905] prevent double invocations of finished in ConncetionEstablisher
17
 * David McKnight   (IBM) - [226561] [apidoc] Add API markup to RSE Javadocs where extend / implement is allowed
17
 * David McKnight   (IBM) - [226561] [apidoc] Add API markup to RSE Javadocs where extend / implement is allowed
18
 * Noriaki Takatsu  (IBM) - [257666] [multithread] TCP/IP socket connection is not closed
19
 * David McKnight   (IBM) - [257666] modified original patch to simplify
18
 *******************************************************************************/
20
 *******************************************************************************/
19
21
20
package org.eclipse.dstore.core.server;
22
package org.eclipse.dstore.core.server;
21
23
24
import java.io.IOException;
22
import java.net.Socket;
25
import java.net.Socket;
23
26
24
import org.eclipse.dstore.core.model.DataElement;
27
import org.eclipse.dstore.core.model.DataElement;
Lines 82-87 Link Here
82
		_dataStore.setConnected(false);
85
		_dataStore.setConnected(false);
83
	    super.finish();
86
	    super.finish();
84
	    _connection.finished(this);
87
	    _connection.finished(this);
88
	    try
89
	    {
90
	    	socket().close();
91
	    }
92
	    catch (IOException e){
93
	    	System.out.println(e);
94
	    }
85
	}
95
	}
86
96
87
	/**
97
	/**
Lines 93-98 Link Here
93
		e.printStackTrace();
103
		e.printStackTrace();
94
		System.out.println(e);
104
		System.out.println(e);
95
		_connection.finished(this);
105
		_connection.finished(this);
106
		try
107
	    {
108
	    	socket().close();
109
	    }
110
	    catch (IOException IOe){
111
	    	System.out.println(IOe);
112
	    }
96
	}
113
	}
97
114
98
}
115
}

Return to bug 258993