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

CustomBufferedStream were not disposed #590

Merged
merged 7 commits into from
May 11, 2019
2 changes: 1 addition & 1 deletion src/Titanium.Web.Proxy/ExplicitClientHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ await clientStreamWriter.WriteResponseAsync(connectArgs.HttpClient.Response,
X509Certificate2 certificate = null;
try
{
sslStream = new SslStream(clientStream, true);
sslStream = new SslStream(clientStream, false);

string certName = HttpHelper.GetWildCardDomainName(connectHostname);
certificate = endPoint.GenericCertificate ??
Expand Down
2 changes: 1 addition & 1 deletion src/Titanium.Web.Proxy/TransparentClientHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ private async Task handleClient(TransparentProxyEndPoint endPoint, TcpClientConn
X509Certificate2 certificate = null;
try
{
sslStream = new SslStream(clientStream, true);
sslStream = new SslStream(clientStream, false);

string certName = HttpHelper.GetWildCardDomainName(httpsHostName);
certificate = endPoint.GenericCertificate ??
Expand Down