aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jpdillingham@gmail.com>2021-11-26 22:55:08 -0600
committerJP Dillingham <jpdillingham@gmail.com>2021-11-26 22:55:08 -0600
commit78c81b7f5d873a917ccbce5e01a87f40dd5426ae (patch)
treeadcd0967dbe8383de72c25aef8866214f145ac4d /src
parentb44fd4c637cc0b62bbcf116f286c9b86720e9d61 (diff)
downloadslskd-78c81b7f5d873a917ccbce5e01a87f40dd5426ae.tar.gz
use correct option level
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Application.cs6
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);