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
56fb7aa5
Commit
56fb7aa5
authored
May 12, 2018
by
justcoding121
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enable connection pool by default
parent
32c750fb
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
4 deletions
+5
-4
ProxyTestController.cs
.../Titanium.Web.Proxy.Examples.Basic/ProxyTestController.cs
+1
-1
ProxyServer.cs
Titanium.Web.Proxy/ProxyServer.cs
+3
-3
RequestHandler.cs
Titanium.Web.Proxy/RequestHandler.cs
+1
-0
No files found.
Examples/Titanium.Web.Proxy.Examples.Basic/ProxyTestController.cs
View file @
56fb7aa5
...
@@ -23,7 +23,7 @@ namespace Titanium.Web.Proxy.Examples.Basic
...
@@ -23,7 +23,7 @@ namespace Titanium.Web.Proxy.Examples.Basic
public
ProxyTestController
()
public
ProxyTestController
()
{
{
proxyServer
=
new
ProxyServer
();
proxyServer
=
new
ProxyServer
();
proxyServer
.
EnableConnectionPool
=
tru
e
;
//proxyServer.EnableConnectionPool = fals
e;
// generate root certificate without storing it in file system
// generate root certificate without storing it in file system
//proxyServer.CertificateManager.CreateRootCertificate(false);
//proxyServer.CertificateManager.CreateRootCertificate(false);
...
...
Titanium.Web.Proxy/ProxyServer.cs
View file @
56fb7aa5
...
@@ -155,10 +155,10 @@ namespace Titanium.Web.Proxy
...
@@ -155,10 +155,10 @@ namespace Titanium.Web.Proxy
public
bool
Enable100ContinueBehaviour
{
get
;
set
;
}
public
bool
Enable100ContinueBehaviour
{
get
;
set
;
}
/// <summary>
/// <summary>
/// Should we enable
experimental Tcp
server connection pool?
/// Should we enable server connection pool?
/// Defaults to
fals
e.
/// Defaults to
tru
e.
/// </summary>
/// </summary>
public
bool
EnableConnectionPool
{
get
;
set
;
}
public
bool
EnableConnectionPool
{
get
;
set
;
}
=
true
;
/// <summary>
/// <summary>
/// Buffer size used throughout this proxy.
/// Buffer size used throughout this proxy.
...
...
Titanium.Web.Proxy/RequestHandler.cs
View file @
56fb7aa5
...
@@ -191,6 +191,7 @@ namespace Titanium.Web.Proxy
...
@@ -191,6 +191,7 @@ namespace Titanium.Web.Proxy
// create a new connection if cache key changes.
// create a new connection if cache key changes.
// only gets hit when connection pool is disabled.
// only gets hit when connection pool is disabled.
// or when prefetch task has a unexpectedly different connection.
if
(
serverConnection
!=
null
if
(
serverConnection
!=
null
&&
(
await
getConnectionCacheKey
(
args
,
false
,
&&
(
await
getConnectionCacheKey
(
args
,
false
,
clientConnection
.
NegotiatedApplicationProtocol
)
clientConnection
.
NegotiatedApplicationProtocol
)
...
...
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