From 7d248e4ba91976015364f9c879b8f107c2f3f6d0 Mon Sep 17 00:00:00 2001 From: Natalie Bunduwongse Date: Sat, 19 Oct 2024 17:28:41 +1300 Subject: [PATCH] fix: tcp timeout --- .../Runtime/Communication/TCPCommunicationLayer.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Packages/Passport/Runtime/ThirdParty/UnityWebBrowser/Runtime/Communication/TCPCommunicationLayer.cs b/src/Packages/Passport/Runtime/ThirdParty/UnityWebBrowser/Runtime/Communication/TCPCommunicationLayer.cs index 1f96cfb7..e0185b5f 100644 --- a/src/Packages/Passport/Runtime/ThirdParty/UnityWebBrowser/Runtime/Communication/TCPCommunicationLayer.cs +++ b/src/Packages/Passport/Runtime/ThirdParty/UnityWebBrowser/Runtime/Communication/TCPCommunicationLayer.cs @@ -48,13 +48,13 @@ public TCPCommunicationLayer() public override Client CreateClient() { IPEndPoint ipEndPoint = new(IPAddress.Loopback, inPort); - return new TCPClient(ipEndPoint, connectionTimeout); + return new TCPClient(ipEndPoint, int.MaxValue); } public override Host CreateHost() { IPEndPoint ipEndPoint = new(IPAddress.Loopback, outPort); - return new TCPHost(ipEndPoint); + return new TCPHost(ipEndPoint, int.MaxValue, int.MaxValue); } public override void GetIpcSettings(out object outLocation, out object inLocation, out string assemblyLocation)