increase timeout in java.net.ServerSocket.AcceptTimeout

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

increase timeout in java.net.ServerSocket.AcceptTimeout

Christian Thalinger
Hi!

The java.net.ServerSocket.AcceptTimeout test failed consistently on
IcedTea with CACAO.  I talked to Mark about it, as he's the author of
the test, and he said we should increase the ServerSocket timeout.  It
seems to fix the issue.

- twisti

---

Index: ChangeLog
===================================================================
RCS file: /cvs/mauve/mauve/ChangeLog,v
retrieving revision 1.2125
diff -u -3 -p -r1.2125 ChangeLog
--- ChangeLog 25 Aug 2008 15:13:14 -0000 1.2125
+++ ChangeLog 1 Sep 2008 09:34:33 -0000
@@ -1,3 +1,8 @@
+2008-09-01  Christian Thalinger  <[hidden email]>
+
+ * gnu/testlet/java/net/ServerSocket/AcceptTimeout.java (test):
+ Increase timeout from 200 to 2000.
+
 2008-08-25  Andrew John Hughes  <[hidden email]>
 
  * gnu/testlet/java/lang/Enum/PR33183.java:
Index: gnu/testlet/java/net/ServerSocket/AcceptTimeout.java
===================================================================
RCS file: /cvs/mauve/mauve/gnu/testlet/java/net/ServerSocket/AcceptTimeout.java,v
retrieving revision 1.1
diff -u -3 -p -r1.1 AcceptTimeout.java
--- gnu/testlet/java/net/ServerSocket/AcceptTimeout.java 14 May 2006 19:55:28 -0000 1.1
+++ gnu/testlet/java/net/ServerSocket/AcceptTimeout.java 1 Sep 2008 09:34:35 -0000
@@ -39,7 +39,7 @@ public class AcceptTimeout implements Te
     try
       {
  ServerSocket ss = new ServerSocket(port);
- ss.setSoTimeout(200);
+ ss.setSoTimeout(2000);
  Socket s = ss.accept();
  harness.check(s.getSoTimeout(), 0);
  s.close();