You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@river.apache.org by pe...@apache.org on 2012/08/01 10:36:19 UTC
svn commit: r1367884 -
/river/jtsk/trunk/qa/src/com/sun/jini/qa/harness/MasterHarness.java
Author: peter_firmstone
Date: Wed Aug 1 08:36:18 2012
New Revision: 1367884
URL: http://svn.apache.org/viewvc?rev=1367884&view=rev
Log:
Lets see if we can't get BSD to run some tests!
Modified:
river/jtsk/trunk/qa/src/com/sun/jini/qa/harness/MasterHarness.java
Modified: river/jtsk/trunk/qa/src/com/sun/jini/qa/harness/MasterHarness.java
URL: http://svn.apache.org/viewvc/river/jtsk/trunk/qa/src/com/sun/jini/qa/harness/MasterHarness.java?rev=1367884&r1=1367883&r2=1367884&view=diff
==============================================================================
--- river/jtsk/trunk/qa/src/com/sun/jini/qa/harness/MasterHarness.java (original)
+++ river/jtsk/trunk/qa/src/com/sun/jini/qa/harness/MasterHarness.java Wed Aug 1 08:36:18 2012
@@ -51,6 +51,9 @@ import java.util.TreeSet;
import java.util.jar.JarFile;
import java.util.zip.ZipEntry;
import java.lang.reflect.Field;
+import java.net.InetAddress;
+import java.net.InetSocketAddress;
+import java.net.SocketAddress;
//Should there be an 'AbortTestRequest' ?
@@ -248,8 +251,10 @@ class MasterHarness {
public void run() {
ArrayList socketList = new ArrayList(); // keep references
try {
- ServerSocket socket =
- new ServerSocket(KEEPALIVE_PORT);
+ SocketAddress add = new InetSocketAddress(KEEPALIVE_PORT);
+ ServerSocket socket = new ServerSocket();
+ if (!socket.getReuseAddress()) socket.setReuseAddress(true);
+ socket.bind(add);
while (true) {
socketList.add(socket.accept());
}