Unverified Commit 6e237759 authored by Jehonathan Thomas's avatar Jehonathan Thomas Committed by GitHub

Merge pull request #580 from StephaneGraziano/master

Memory Leak Fix
parents b309fc21 1fcd6838
...@@ -53,6 +53,9 @@ namespace Titanium.Web.Proxy.Examples.Wpf ...@@ -53,6 +53,9 @@ namespace Titanium.Web.Proxy.Examples.Wpf
proxyServer.ForwardToUpstreamGateway = true; proxyServer.ForwardToUpstreamGateway = true;
//increase the ThreadPool (for server prod)
//proxyServer.ThreadPoolWorkerThread = Environment.ProcessorCount * 6;
////if you need Load or Create Certificate now. ////// "true" if you need Enable===> Trust the RootCertificate used by this proxy server ////if you need Load or Create Certificate now. ////// "true" if you need Enable===> Trust the RootCertificate used by this proxy server
//proxyServer.CertificateManager.EnsureRootCertificate(true); //proxyServer.CertificateManager.EnsureRootCertificate(true);
......
...@@ -494,11 +494,12 @@ namespace Titanium.Web.Proxy.Network.Tcp ...@@ -494,11 +494,12 @@ namespace Titanium.Web.Proxy.Network.Tcp
|| connection.LastAccess < cutOff) || connection.LastAccess < cutOff)
{ {
disposalBag.Add(connection); disposalBag.Add(connection);
continue;
} }
else
queue.Enqueue(connection); {
break; queue.Enqueue(connection);
break;
}
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment