mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 07:14:30 +02:00
8284890: Support for Do not fragment IP socket options
Reviewed-by: erikj, ihse, dfuchs
This commit is contained in:
parent
a7b5157375
commit
67755edd6f
11 changed files with 498 additions and 3 deletions
|
@ -108,7 +108,8 @@ public abstract class ExtendedSocketOptions {
|
|||
}
|
||||
|
||||
private static boolean isStreamOption(SocketOption<?> option, boolean server) {
|
||||
if (option.name().startsWith("UDP_") || isUnixDomainOption(option)) {
|
||||
if (option.name().startsWith("UDP_") || isUnixDomainOption(option)
|
||||
|| option.name().equals("IP_DONTFRAGMENT")) {
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue