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
b9cbd731
Commit
b9cbd731
authored
Jul 17, 2016
by
justcoding121
Committed by
GitHub
Jul 17, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #100 from justcoding121/release
enable Nagle algorithm
parents
8b46f917
63a8d938
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
12 deletions
+7
-12
TcpConnection.cs
Titanium.Web.Proxy/Network/TcpConnection.cs
+1
-0
TcpConnectionFactory.cs
Titanium.Web.Proxy/Network/TcpConnectionFactory.cs
+0
-4
ProxyServer.cs
Titanium.Web.Proxy/ProxyServer.cs
+2
-6
ResponseHandler.cs
Titanium.Web.Proxy/ResponseHandler.cs
+4
-2
No files found.
Titanium.Web.Proxy/Network/TcpConnection.cs
View file @
b9cbd731
...
...
@@ -44,6 +44,7 @@ namespace Titanium.Web.Proxy.Network
public
void
Dispose
()
{
Stream
.
Close
();
Stream
.
Dispose
();
TcpClient
.
LingerState
=
new
LingerOption
(
true
,
0
);
...
...
Titanium.Web.Proxy/Network/TcpConnectionFactory.cs
View file @
b9cbd731
...
...
@@ -119,8 +119,6 @@ namespace Titanium.Web.Proxy.Network
stream
.
ReadTimeout
=
connectionTimeOutSeconds
*
1000
;
stream
.
WriteTimeout
=
connectionTimeOutSeconds
*
1000
;
client
.
NoDelay
=
true
;
return
new
TcpConnection
()
{
...
...
@@ -133,7 +131,5 @@ namespace Titanium.Web.Proxy.Network
Version
=
httpVersion
};
}
}
}
Titanium.Web.Proxy/ProxyServer.cs
View file @
b9cbd731
...
...
@@ -380,15 +380,11 @@ namespace Titanium.Web.Proxy
}
if
(
tcpClient
!=
null
)
{
{
Task
.
Run
(
async
()
=>
{
try
{
tcpClient
.
NoDelay
=
true
;
{
if
(
endPoint
.
GetType
()
==
typeof
(
TransparentProxyEndPoint
))
{
await
HandleClient
(
endPoint
as
TransparentProxyEndPoint
,
tcpClient
);
...
...
Titanium.Web.Proxy/ResponseHandler.cs
View file @
b9cbd731
...
...
@@ -7,6 +7,7 @@ using Titanium.Web.Proxy.Compression;
using
System.Threading.Tasks
;
using
Titanium.Web.Proxy.Extensions
;
using
Titanium.Web.Proxy.Http
;
using
Titanium.Web.Proxy.Helpers
;
namespace
Titanium.Web.Proxy
{
...
...
@@ -214,8 +215,8 @@ namespace Titanium.Web.Proxy
/// <param name="clientStreamReader"></param>
/// <param name="clientStreamWriter"></param>
/// <param name="args"></param>
private
void
Dispose
(
Stream
clientStream
,
IDisposable
clientStreamReader
,
IDisposable
clientStreamWriter
,
IDisposable
args
)
private
void
Dispose
(
Stream
clientStream
,
CustomBinaryReader
clientStreamReader
,
StreamWriter
clientStreamWriter
,
IDisposable
args
)
{
if
(
clientStream
!=
null
)
...
...
@@ -236,6 +237,7 @@ namespace Titanium.Web.Proxy
if
(
clientStreamWriter
!=
null
)
{
clientStreamWriter
.
Close
();
clientStreamWriter
.
Dispose
();
}
}
...
...
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