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
63a8d938
Commit
63a8d938
authored
Jul 17, 2016
by
justcoding121
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
enable Nagle algorithm
parent
e1cf60d6
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 @
63a8d938
...
@@ -44,6 +44,7 @@ namespace Titanium.Web.Proxy.Network
...
@@ -44,6 +44,7 @@ namespace Titanium.Web.Proxy.Network
public
void
Dispose
()
public
void
Dispose
()
{
{
Stream
.
Close
();
Stream
.
Dispose
();
Stream
.
Dispose
();
TcpClient
.
LingerState
=
new
LingerOption
(
true
,
0
);
TcpClient
.
LingerState
=
new
LingerOption
(
true
,
0
);
...
...
Titanium.Web.Proxy/Network/TcpConnectionFactory.cs
View file @
63a8d938
...
@@ -119,8 +119,6 @@ namespace Titanium.Web.Proxy.Network
...
@@ -119,8 +119,6 @@ namespace Titanium.Web.Proxy.Network
stream
.
ReadTimeout
=
connectionTimeOutSeconds
*
1000
;
stream
.
ReadTimeout
=
connectionTimeOutSeconds
*
1000
;
stream
.
WriteTimeout
=
connectionTimeOutSeconds
*
1000
;
stream
.
WriteTimeout
=
connectionTimeOutSeconds
*
1000
;
client
.
NoDelay
=
true
;
return
new
TcpConnection
()
return
new
TcpConnection
()
{
{
...
@@ -133,7 +131,5 @@ namespace Titanium.Web.Proxy.Network
...
@@ -133,7 +131,5 @@ namespace Titanium.Web.Proxy.Network
Version
=
httpVersion
Version
=
httpVersion
};
};
}
}
}
}
}
}
Titanium.Web.Proxy/ProxyServer.cs
View file @
63a8d938
...
@@ -380,15 +380,11 @@ namespace Titanium.Web.Proxy
...
@@ -380,15 +380,11 @@ namespace Titanium.Web.Proxy
}
}
if
(
tcpClient
!=
null
)
if
(
tcpClient
!=
null
)
{
{
Task
.
Run
(
async
()
=>
Task
.
Run
(
async
()
=>
{
{
try
try
{
{
tcpClient
.
NoDelay
=
true
;
if
(
endPoint
.
GetType
()
==
typeof
(
TransparentProxyEndPoint
))
if
(
endPoint
.
GetType
()
==
typeof
(
TransparentProxyEndPoint
))
{
{
await
HandleClient
(
endPoint
as
TransparentProxyEndPoint
,
tcpClient
);
await
HandleClient
(
endPoint
as
TransparentProxyEndPoint
,
tcpClient
);
...
...
Titanium.Web.Proxy/ResponseHandler.cs
View file @
63a8d938
...
@@ -7,6 +7,7 @@ using Titanium.Web.Proxy.Compression;
...
@@ -7,6 +7,7 @@ using Titanium.Web.Proxy.Compression;
using
System.Threading.Tasks
;
using
System.Threading.Tasks
;
using
Titanium.Web.Proxy.Extensions
;
using
Titanium.Web.Proxy.Extensions
;
using
Titanium.Web.Proxy.Http
;
using
Titanium.Web.Proxy.Http
;
using
Titanium.Web.Proxy.Helpers
;
namespace
Titanium.Web.Proxy
namespace
Titanium.Web.Proxy
{
{
...
@@ -214,8 +215,8 @@ namespace Titanium.Web.Proxy
...
@@ -214,8 +215,8 @@ namespace Titanium.Web.Proxy
/// <param name="clientStreamReader"></param>
/// <param name="clientStreamReader"></param>
/// <param name="clientStreamWriter"></param>
/// <param name="clientStreamWriter"></param>
/// <param name="args"></param>
/// <param name="args"></param>
private
void
Dispose
(
Stream
clientStream
,
IDisposable
clientStreamReader
,
private
void
Dispose
(
Stream
clientStream
,
CustomBinaryReader
clientStreamReader
,
IDisposable
clientStreamWriter
,
IDisposable
args
)
StreamWriter
clientStreamWriter
,
IDisposable
args
)
{
{
if
(
clientStream
!=
null
)
if
(
clientStream
!=
null
)
...
@@ -236,6 +237,7 @@ namespace Titanium.Web.Proxy
...
@@ -236,6 +237,7 @@ namespace Titanium.Web.Proxy
if
(
clientStreamWriter
!=
null
)
if
(
clientStreamWriter
!=
null
)
{
{
clientStreamWriter
.
Close
();
clientStreamWriter
.
Dispose
();
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