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
73438194
Commit
73438194
authored
Mar 04, 2019
by
justcoding121
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nodelay option
parent
90281644
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
1 deletion
+8
-1
TcpConnectionFactory.cs
src/Titanium.Web.Proxy/Network/Tcp/TcpConnectionFactory.cs
+1
-1
ProxyServer.cs
src/Titanium.Web.Proxy/ProxyServer.cs
+7
-0
No files found.
src/Titanium.Web.Proxy/Network/Tcp/TcpConnectionFactory.cs
View file @
73438194
...
@@ -271,7 +271,7 @@ namespace Titanium.Web.Proxy.Network.Tcp
...
@@ -271,7 +271,7 @@ namespace Titanium.Web.Proxy.Network.Tcp
{
{
tcpClient
=
new
TcpClient
(
upStreamEndPoint
)
tcpClient
=
new
TcpClient
(
upStreamEndPoint
)
{
{
NoDelay
=
true
,
NoDelay
=
proxyServer
.
NoDelay
,
ReceiveTimeout
=
proxyServer
.
ConnectionTimeOutSeconds
*
1000
,
ReceiveTimeout
=
proxyServer
.
ConnectionTimeOutSeconds
*
1000
,
SendTimeout
=
proxyServer
.
ConnectionTimeOutSeconds
*
1000
,
SendTimeout
=
proxyServer
.
ConnectionTimeOutSeconds
*
1000
,
SendBufferSize
=
proxyServer
.
BufferSize
,
SendBufferSize
=
proxyServer
.
BufferSize
,
...
...
src/Titanium.Web.Proxy/ProxyServer.cs
View file @
73438194
...
@@ -173,6 +173,12 @@ namespace Titanium.Web.Proxy
...
@@ -173,6 +173,12 @@ namespace Titanium.Web.Proxy
/// </summary>
/// </summary>
public
bool
EnableTcpServerConnectionPrefetch
{
get
;
set
;
}
=
true
;
public
bool
EnableTcpServerConnectionPrefetch
{
get
;
set
;
}
=
true
;
/// <summary>
/// Gets or sets a Boolean value that specifies whether server and client stream Sockets are using the Nagle algorithm.
/// Defaults to true, no nagle algorithm is used.
/// </summary>
public
bool
NoDelay
{
get
;
set
;
}
=
true
;
/// <summary>
/// <summary>
/// Buffer size in bytes used throughout this proxy.
/// Buffer size in bytes used throughout this proxy.
/// Default value is 8192 bytes.
/// Default value is 8192 bytes.
...
@@ -696,6 +702,7 @@ namespace Titanium.Web.Proxy
...
@@ -696,6 +702,7 @@ namespace Titanium.Web.Proxy
{
{
// based on end point type call appropriate request handlers
// based on end point type call appropriate request handlers
tcpClient
=
endPoint
.
Listener
.
EndAcceptTcpClient
(
asyn
);
tcpClient
=
endPoint
.
Listener
.
EndAcceptTcpClient
(
asyn
);
tcpClient
.
NoDelay
=
NoDelay
;
}
}
catch
(
ObjectDisposedException
)
catch
(
ObjectDisposedException
)
{
{
...
...
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