diff options
author | Sven Gothel <[email protected]> | 2012-10-04 19:05:06 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2012-10-04 19:05:06 +0200 |
commit | 7a89ef6efd332845f29328c6167919b294183764 (patch) | |
tree | 80ef827015a38213696c0b2fff9420bca678d877 /src | |
parent | 2cbc4badb7fed2cc94128fda0fc381964b1b1f8d (diff) |
SingletonInstanceServerSocket: serverSocket.setReuseAddress(true); // reuse same port w/ subsequent instance, i.e. overcome TO state when JVM crashed
Diffstat (limited to 'src')
-rw-r--r-- | src/java/jogamp/common/util/locks/SingletonInstanceServerSocket.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/java/jogamp/common/util/locks/SingletonInstanceServerSocket.java b/src/java/jogamp/common/util/locks/SingletonInstanceServerSocket.java index dac6e72..fb31ab6 100644 --- a/src/java/jogamp/common/util/locks/SingletonInstanceServerSocket.java +++ b/src/java/jogamp/common/util/locks/SingletonInstanceServerSocket.java @@ -225,6 +225,7 @@ public class SingletonInstanceServerSocket extends SingletonInstance { synchronized (syncOnStartStop) { try { serverSocket = new ServerSocket(portNumber, 1, localInetAddress); + serverSocket.setReuseAddress(true); // reuse same port w/ subsequent instance, i.e. overcome TO state when JVM crashed alive = true; } catch (IOException e) { System.err.println(infoPrefix()+" III - Unable to install ServerSocket: "+e.getMessage()); |