Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
T
Titanium-Web-Proxy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Titanium-Web-Proxy
Commits
6e237759
Unverified
Commit
6e237759
authored
Apr 18, 2019
by
Jehonathan Thomas
Committed by
GitHub
Apr 18, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #580 from StephaneGraziano/master
Memory Leak Fix
parents
b309fc21
1fcd6838
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
MainWindow.xaml.cs
examples/Titanium.Web.Proxy.Examples.Wpf/MainWindow.xaml.cs
+3
-0
TcpConnectionFactory.cs
src/Titanium.Web.Proxy/Network/Tcp/TcpConnectionFactory.cs
+5
-4
No files found.
examples/Titanium.Web.Proxy.Examples.Wpf/MainWindow.xaml.cs
View file @
6e237759
...
@@ -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);
...
...
src/Titanium.Web.Proxy/Network/Tcp/TcpConnectionFactory.cs
View file @
6e237759
...
@@ -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
;
}
}
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment