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

Memory Leak Fix #580

Merged
merged 4 commits into from
Apr 18, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions examples/Titanium.Web.Proxy.Examples.Wpf/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ public MainWindow()

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
//proxyServer.CertificateManager.EnsureRootCertificate(true);

Expand Down
9 changes: 5 additions & 4 deletions src/Titanium.Web.Proxy/Network/Tcp/TcpConnectionFactory.cs
Original file line number Diff line number Diff line change
Expand Up @@ -494,11 +494,12 @@ private async Task clearOutdatedConnections()
|| connection.LastAccess < cutOff)
{
disposalBag.Add(connection);
continue;
}

queue.Enqueue(connection);
break;
else
{
queue.Enqueue(connection);
break;
}
}
}
}
Expand Down