8031666: TEST_BUG: java/net/ipv6tests/UdpTest.java failed because of SocketTimeoutException
Reviewed-by: alanb, chegar
This commit is contained in:
parent
30717d9de3
commit
b31c05a9aa
@ -147,6 +147,7 @@ public class UdpTest extends Tests {
|
|||||||
final InetAddress ia6 = ia6addr;
|
final InetAddress ia6 = ia6addr;
|
||||||
final int port = s1.getLocalPort();
|
final int port = s1.getLocalPort();
|
||||||
|
|
||||||
|
s1.setSoTimeout(10000);
|
||||||
runAfter (2000, new Runnable () {
|
runAfter (2000, new Runnable () {
|
||||||
public void run () {
|
public void run () {
|
||||||
try {
|
try {
|
||||||
@ -157,7 +158,7 @@ public class UdpTest extends Tests {
|
|||||||
});
|
});
|
||||||
t1 = System.currentTimeMillis();
|
t1 = System.currentTimeMillis();
|
||||||
s1.receive (new DatagramPacket (new byte [128], 128));
|
s1.receive (new DatagramPacket (new byte [128], 128));
|
||||||
checkTime (System.currentTimeMillis() - t1, 2000);
|
checkTime (System.currentTimeMillis() - t1, 4000);
|
||||||
s1.close ();
|
s1.close ();
|
||||||
s2.close ();
|
s2.close ();
|
||||||
System.out.println ("Test2: OK");
|
System.out.println ("Test2: OK");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user