File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
io/jvm-native/src/main/scala/fs2/io/net Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -72,7 +72,8 @@ private[net] trait SocketOptionCompanionPlatform {
72
72
def reuseAddress (value : Boolean ): SocketOption =
73
73
boolean(ReuseAddress , value)
74
74
75
- val ReusePort = StandardSocketOptions .SO_REUSEPORT
75
+ // Note: this option was added in Java 9 so lazily load it to avoid failure on Java 8
76
+ lazy val ReusePort = StandardSocketOptions .SO_REUSEPORT
76
77
def reusePort (value : Boolean ): SocketOption =
77
78
boolean(ReusePort , value)
78
79
@@ -97,6 +98,4 @@ private[net] trait SocketOptionCompanionPlatform {
97
98
}
98
99
def unixServerSocketDeleteOnClose (value : Boolean ): SocketOption =
99
100
boolean(UnixServerSocketDeleteOnClose , value)
100
-
101
- // TODO SO_PEERCRED
102
101
}
You can’t perform that action at this time.
0 commit comments