提交 a582cebe 编写于 作者: B bpb

8133647: (ch) Test...

8133647: (ch) Test java/nio/channels/AsynchronousSocketChannel/StressLoopback.java fails for Windows XP
Summary: Ignore WSAEINVAL returned by NET_EnableFastTcpLoopback().
Reviewed-by: coffeys, alanb
上级 3db5657e
/* /*
* Copyright (c) 2001, 2013, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2001, 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -157,7 +157,7 @@ Java_sun_nio_ch_Net_socket0(JNIEnv *env, jclass cl, jboolean preferIPv6, ...@@ -157,7 +157,7 @@ Java_sun_nio_ch_Net_socket0(JNIEnv *env, jclass cl, jboolean preferIPv6,
if (loopback_available) { if (loopback_available) {
int rv = NET_EnableFastTcpLoopback((jint)s); int rv = NET_EnableFastTcpLoopback((jint)s);
if (rv) { if (rv) {
if (rv == WSAEOPNOTSUPP) { if (rv == WSAEOPNOTSUPP || rv == WSAEINVAL) {
loopback_available = 0; loopback_available = 0;
} else { } else {
NET_ThrowNew(env, rv, "fastLoopback"); NET_ThrowNew(env, rv, "fastLoopback");
......
/* /*
* Copyright (c) 2008, 2009, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2008, 2015, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
...@@ -22,7 +22,7 @@ ...@@ -22,7 +22,7 @@
*/ */
/* @test /* @test
* @bug 6834246 6842687 * @bug 6834246 6842687 8133647
* @summary Stress test connections through the loopback interface * @summary Stress test connections through the loopback interface
* @run main StressLoopback * @run main StressLoopback
* @run main/othervm -Djdk.net.useFastTcpLoopback StressLoopback * @run main/othervm -Djdk.net.useFastTcpLoopback StressLoopback
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册