瀏覽代碼

Reduced Connection Timeout

Frank van den Bos 2 年之前
父節點
當前提交
5a2b210ece
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      InABox.Client.RPC/Transports/Socket/RPCClientSocketTransport.cs

+ 1 - 1
InABox.Client.RPC/Transports/Socket/RPCClientSocketTransport.cs

@@ -61,7 +61,7 @@ namespace InABox.Rpc
             }
             
             // Time to wait before disconnect - the default meant that the client disconnected during debugging, since the ping would fail
-            socket.WaitTime = TimeSpan.FromSeconds(60);
+            socket.WaitTime = TimeSpan.FromSeconds(20);
             socket.OnOpen -= Socket_OnOpen;
             socket.OnError -= Socket_OnError;
             socket.OnClose -= Socket_OnClose;