This is the mail archive of the
mauve-patches@sourceware.org
mailing list for the Mauve project.
increase timeout in java.net.ServerSocket.AcceptTimeout
- From: Christian Thalinger <twisti at complang dot tuwien dot ac dot at>
- To: mauve-patches ml <mauve-patches at sourceware dot org>
- Date: Mon, 01 Sep 2008 11:39:03 +0200
- Subject: increase timeout in java.net.ServerSocket.AcceptTimeout
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 <twisti@complang.tuwien.ac.at>
+
+ * gnu/testlet/java/net/ServerSocket/AcceptTimeout.java (test):
+ Increase timeout from 200 to 2000.
+
2008-08-25 Andrew John Hughes <gnu_andrew@member.fsf.org>
* 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();