Skip to content

Commit 48b326a

Browse files
authored
Merge pull request #307 from immutable/fix/tcp-timeout
[DX-3348] fix: tcp timeout
2 parents 5d545b7 + 7d248e4 commit 48b326a

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)