harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Kleymenov" <kleyme...@gmail.com>
Subject Re: RI's bug of Socket.getOutputStream().write(byte[]) ?
Date Fri, 23 Jun 2006 10:40:51 GMT
Hello Andrew,

I ran the test on RI (1.4.2_04-b05 and 1.5.0-b64)  and could not
reproduce the failure. Is it still an issue?

Can I suggest a little improvement for your test? Try do not use
hardcoded port numbers in the test.
Let the ServerSocket choose the available port by specifying 0 as parameter.
I.e. write the test as:

       ServerSocket server = new ServerSocket(0);
       InetSocketAddress localAddr1 = new InetSocketAddress("",

Such a way prevents the test from "Address in use" exception.

Thank You,

Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org

View raw message