Skip to content
This repository was archived by the owner on Jul 9, 2023. It is now read-only.

Commit f6aa591

Browse files
committed
release client
1 parent 5d2536e commit f6aa591

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Titanium.Web.Proxy/RequestHandler.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,8 @@ private static async void HandleClient(ExplicitProxyEndPoint endPoint, TcpClient
7979
try
8080
{
8181

82-
await TcpConnectionManager.GetClient(httpRemoteUri.Host, httpRemoteUri.Port, true, version).ConfigureAwait(false);
82+
var tunnelClient = await TcpConnectionManager.GetClient(httpRemoteUri.Host, httpRemoteUri.Port, true, version).ConfigureAwait(false);
83+
await TcpConnectionManager.ReleaseClient(tunnelClient);
8384

8485
sslStream = new SslStream(clientStream, true);
8586
var certificate = await CertManager.CreateCertificate(httpRemoteUri.Host, false);

0 commit comments

Comments
 (0)