提交 7598c795 编写于 作者: K khazra

8010213: Some api/javax_net/SocketFactory tests fail in 7u25 nightly build

Summary: Eliminate fall-through while setting socket options on Windows
Reviewed-by: alanb, chegar
上级 4468419d
...@@ -185,14 +185,15 @@ class DualStackPlainSocketImpl extends AbstractPlainSocketImpl ...@@ -185,14 +185,15 @@ class DualStackPlainSocketImpl extends AbstractPlainSocketImpl
int optionValue = 0; int optionValue = 0;
switch(opt) { switch(opt) {
case TCP_NODELAY :
case SO_OOBINLINE :
case SO_REUSEADDR : case SO_REUSEADDR :
if (exclusiveBind) { if (exclusiveBind) {
// SO_REUSEADDR emulated when using exclusive bind // SO_REUSEADDR emulated when using exclusive bind
isReuseAddress = on; isReuseAddress = on;
return; return;
} }
// intentional fallthrough
case TCP_NODELAY :
case SO_OOBINLINE :
case SO_KEEPALIVE : case SO_KEEPALIVE :
optionValue = on ? 1 : 0; optionValue = on ? 1 : 0;
break; break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册