diff options
| author | JP Dillingham <jpdillingham@gmail.com> | 2021-11-26 22:55:08 -0600 |
|---|---|---|
| committer | JP Dillingham <jpdillingham@gmail.com> | 2021-11-26 22:55:08 -0600 |
| commit | 78c81b7f5d873a917ccbce5e01a87f40dd5426ae (patch) | |
| tree | adcd0967dbe8383de72c25aef8866214f145ac4d | |
| parent | b44fd4c637cc0b62bbcf116f286c9b86720e9d61 (diff) | |
| download | slskd-78c81b7f5d873a917ccbce5e01a87f40dd5426ae.tar.gz | |
use correct option level
| -rw-r--r-- | src/slskd/Application.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/slskd/Application.cs b/src/slskd/Application.cs index 1303aaf4..d0cbe361 100644 --- a/src/slskd/Application.cs +++ b/src/slskd/Application.cs @@ -633,9 +633,9 @@ namespace slskd var configureKeepAlive = new Action<Socket>(socket => { socket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.KeepAlive, true); - socket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.TcpKeepAliveTime, connection.Timeout.Inactivity / 1000); - socket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.TcpKeepAliveInterval, connection.Timeout.Inactivity / 1000); - socket.SetSocketOption(SocketOptionLevel.Socket, SocketOptionName.TcpKeepAliveRetryCount, 3); + socket.SetSocketOption(SocketOptionLevel.Tcp, SocketOptionName.TcpKeepAliveTime, connection.Timeout.Inactivity / 1000); + socket.SetSocketOption(SocketOptionLevel.Tcp, SocketOptionName.TcpKeepAliveInterval, connection.Timeout.Inactivity / 1000); + socket.SetSocketOption(SocketOptionLevel.Tcp, SocketOptionName.TcpKeepAliveRetryCount, 3); }); serverPatch = connectionPatch.With(configureSocketAction: configureKeepAlive); |
