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
0f8c8f31
Commit
0f8c8f31
authored
May 11, 2018
by
justcoding121
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup
parent
989c8831
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
9 deletions
+10
-9
ExplicitClientHandler.cs
Titanium.Web.Proxy/ExplicitClientHandler.cs
+4
-4
TcpConnectionFactory.cs
Titanium.Web.Proxy/Network/Tcp/TcpConnectionFactory.cs
+2
-1
RequestHandler.cs
Titanium.Web.Proxy/RequestHandler.cs
+1
-1
TransparentClientHandler.cs
Titanium.Web.Proxy/TransparentClientHandler.cs
+3
-3
No files found.
Titanium.Web.Proxy/ExplicitClientHandler.cs
View file @
0f8c8f31
...
...
@@ -143,7 +143,7 @@ namespace Titanium.Web.Proxy
http2Supported
=
connection
.
NegotiatedApplicationProtocol
==
SslApplicationProtocol
.
Http2
;
//release connection back to pool intead of closing when connection pool is enabled.
await
tcpConnectionFactory
.
Release
(
connection
,
!
EnableConnectionPool
);
await
tcpConnectionFactory
.
Release
(
connection
);
}
SslStream
sslStream
=
null
;
...
...
@@ -316,14 +316,14 @@ namespace Titanium.Web.Proxy
}
finally
{
clientStream
.
Dispose
();
if
(
prefetchConnectionTask
!=
null
)
{
var
connection
=
await
prefetchConnectionTask
;
await
tcpConnectionFactory
.
Release
(
connection
,
closeServerConnection
||
!
EnableConnectionPool
);
await
tcpConnectionFactory
.
Release
(
connection
,
closeServerConnection
);
}
clientStream
.
Dispose
();
if
(!
cancellationTokenSource
.
IsCancellationRequested
)
{
cancellationTokenSource
.
Cancel
();
...
...
Titanium.Web.Proxy/Network/Tcp/TcpConnectionFactory.cs
View file @
0f8c8f31
...
...
@@ -119,7 +119,7 @@ namespace Titanium.Web.Proxy.Network.Tcp
return
;
}
if
(
close
||
connection
.
IsWinAuthenticated
)
if
(
close
||
connection
.
IsWinAuthenticated
||
!
server
.
EnableConnectionPool
)
{
disposalBag
.
Add
(
connection
);
return
;
...
...
@@ -392,3 +392,4 @@ namespace Titanium.Web.Proxy.Network.Tcp
}
}
}
Titanium.Web.Proxy/RequestHandler.cs
View file @
0f8c8f31
...
...
@@ -290,7 +290,7 @@ namespace Titanium.Web.Proxy
||
serverConnection
!=
await
prefetchConnectionTask
)
{
await
tcpConnectionFactory
.
Release
(
serverConnection
,
closeServerConnection
||
!
EnableConnectionPool
);
closeServerConnection
);
}
}
...
...
Titanium.Web.Proxy/TransparentClientHandler.cs
View file @
0f8c8f31
...
...
@@ -155,14 +155,14 @@ namespace Titanium.Web.Proxy
}
finally
{
clientStream
.
Dispose
();
if
(
prefetchConnectionTask
!=
null
)
{
var
connection
=
await
prefetchConnectionTask
;
await
tcpConnectionFactory
.
Release
(
connection
,
closeServerConnection
||
!
EnableConnectionPool
);
await
tcpConnectionFactory
.
Release
(
connection
,
closeServerConnection
);
}
clientStream
.
Dispose
();
if
(!
cancellationTokenSource
.
IsCancellationRequested
)
{
cancellationTokenSource
.
Cancel
();
...
...
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