test/java/rmi/transport/rapidExportUnexport/RapidExportUnexport.java

Print this page

        

*** 29,49 **** * repeatedly) should not encounter substantial synchronous delays * because of the server socket accept loop's failure throttling * procedure (which sleeps 10 seconds after 10 rapid failures). * @author Peter Jones * ! * @build RapidExportUnexport * @run main/othervm RapidExportUnexport */ import java.rmi.Remote; import java.rmi.server.UnicastRemoteObject; public class RapidExportUnexport { ! ! private static final int PORT = 2055; ! private static final int REPS = 100; private static final long TIMEOUT = 60000; public static void main(String[] args) throws Exception { System.err.println("\nRegression test for bug 6275081\n"); --- 29,48 ---- * repeatedly) should not encounter substantial synchronous delays * because of the server socket accept loop's failure throttling * procedure (which sleeps 10 seconds after 10 rapid failures). * @author Peter Jones * ! * @library ../../testlibrary ! * @build TestLibrary RapidExportUnexport * @run main/othervm RapidExportUnexport */ import java.rmi.Remote; import java.rmi.server.UnicastRemoteObject; public class RapidExportUnexport { ! private static final int PORT = TestLibrary.getUnusedRandomPort(); private static final int REPS = 100; private static final long TIMEOUT = 60000; public static void main(String[] args) throws Exception { System.err.println("\nRegression test for bug 6275081\n");