8010213: Some api/javax_net/SocketFactory tests fail in 7u25 nightly build
Eliminate fall-through while setting socket options on Windows Reviewed-by: alanb, chegar
This commit is contained in:
parent
e97bdfa854
commit
fcd5e6c404
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user