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;
|
||||
|
||||
switch(opt) {
|
||||
case TCP_NODELAY :
|
||||
case SO_OOBINLINE :
|
||||
case SO_REUSEADDR :
|
||||
if (exclusiveBind) {
|
||||
// SO_REUSEADDR emulated when using exclusive bind
|
||||
isReuseAddress = on;
|
||||
return;
|
||||
}
|
||||
// intentional fallthrough
|
||||
case TCP_NODELAY :
|
||||
case SO_OOBINLINE :
|
||||
case SO_KEEPALIVE :
|
||||
optionValue = on ? 1 : 0;
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user