mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8209152: (so) ServerSocketChannel::supportedOptions includes IP_TOS
Reviewed-by: chegar
This commit is contained in:
parent
e7a2c9d679
commit
f1202dc4dc
2 changed files with 66 additions and 8 deletions
|
@ -152,13 +152,6 @@ class ServerSocketChannelImpl
|
|||
synchronized (stateLock) {
|
||||
ensureOpen();
|
||||
|
||||
if (name == StandardSocketOptions.IP_TOS) {
|
||||
ProtocolFamily family = Net.isIPv6Available() ?
|
||||
StandardProtocolFamily.INET6 : StandardProtocolFamily.INET;
|
||||
Net.setSocketOption(fd, family, name, value);
|
||||
return this;
|
||||
}
|
||||
|
||||
if (name == StandardSocketOptions.SO_REUSEADDR && Net.useExclusiveBind()) {
|
||||
// SO_REUSEADDR emulated when using exclusive bind
|
||||
isReuseAddress = (Boolean)value;
|
||||
|
@ -200,7 +193,6 @@ class ServerSocketChannelImpl
|
|||
if (Net.isReusePortAvailable()) {
|
||||
set.add(StandardSocketOptions.SO_REUSEPORT);
|
||||
}
|
||||
set.add(StandardSocketOptions.IP_TOS);
|
||||
set.addAll(ExtendedSocketOptions.options(SOCK_STREAM));
|
||||
return Collections.unmodifiableSet(set);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue