I tested this on both Suse Linux 10.2 and Windows XP and it ran fine.

I still suggest that the timeout be changed from its current value of 0.1 seconds (or 100 milliseconds) to  0.001 seconds (or 1 millisecond).  Its an easy change, 1 millisecond is a valid timeout value in Java and it will dramatically improve the chances of the test passing if the made up test ip address exists somehow on the testers system.  I don't want to make a big deal out of this, so I will just leave it as a suggestion.


-----Original Message-----
From: Charlie Groves <charlie.groves@gmail.com>
To: Alan Kennedy <jython-dev@xhaus.com>
Cc: JythonDevelopers <jython-dev@lists.sourceforge.net>
Sent: Sat, 28 Jul 2007 2:50 am
Subject: Re: [Jython-dev] test_socket and test_select_new failures on Mac on trunk

On 7/26/07, Alan Kennedy <jython-dev@xhaus.com> wrote:
> [Raghuram]
> > I googled for a way to test connection timeouts and found this link:
> >
> > http://www.developerweb.net/forum/archive/index.php/t-3608.html
> >
> > Following up on the suggestion in that thread, I tried connecting to
> > IPs 213.168.179.251 and 192.168.179.251 and consistenly got timeouts
> > (with time out set to 0.1). Is there a way we can use this methodology
> > in "TCPClientTimeoutTest"?
>
> I'm +1 on this solution, but would like to wait for possible
> disagreements before we go ahead with it.

I didn't see any objections, so I went ahead and did this in r3161.
r3161 also fixes the testBindException problem I was seeing; the
socket created in that test wasn't getting SO_REUSEADDR set on it so
the initial bind would fail.

With these changes all of test_socket passes for me now. Onto the
test_select_new failures...

Charlie

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Jython-dev mailing list
Jython-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jython-dev

Check Out the new free AIM(R) Mail -- Unlimited storage and industry-leading spam and email virus protection.