Skip to content

Commit 7d248e4

Browse files
committed
fix: tcp timeout
1 parent 7b2c24a commit 7d248e4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Packages/Passport/Runtime/ThirdParty/UnityWebBrowser/Runtime/Communication/TCPCommunicationLayer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ public TCPCommunicationLayer()
4848
public override Client CreateClient()
4949
{
5050
IPEndPoint ipEndPoint = new(IPAddress.Loopback, inPort);
51-
return new TCPClient(ipEndPoint, connectionTimeout);
51+
return new TCPClient(ipEndPoint, int.MaxValue);
5252
}
5353

5454
public override Host CreateHost()
5555
{
5656
IPEndPoint ipEndPoint = new(IPAddress.Loopback, outPort);
57-
return new TCPHost(ipEndPoint);
57+
return new TCPHost(ipEndPoint, int.MaxValue, int.MaxValue);
5858
}
5959

6060
public override void GetIpcSettings(out object outLocation, out object inLocation, out string assemblyLocation)

0 commit comments

Comments
 (0)