Commit 03ed2635 authored by justcoding121's avatar justcoding121

adjust defaults

parent 56de40a3
...@@ -130,6 +130,7 @@ namespace Titanium.Web.Proxy ...@@ -130,6 +130,7 @@ namespace Titanium.Web.Proxy
/// <summary> /// <summary>
/// Gets or sets a value indicating whether requests will be chained to upstream gateway. /// Gets or sets a value indicating whether requests will be chained to upstream gateway.
/// Defaults to false.
/// </summary> /// </summary>
public bool ForwardToUpstreamGateway { get; set; } public bool ForwardToUpstreamGateway { get; set; }
...@@ -138,6 +139,7 @@ namespace Titanium.Web.Proxy ...@@ -138,6 +139,7 @@ namespace Titanium.Web.Proxy
/// Note: NTLM/Kerberos will always send local credentials of current user /// Note: NTLM/Kerberos will always send local credentials of current user
/// running the proxy process. This is because a man /// running the proxy process. This is because a man
/// in middle attack with Windows domain authentication is not currently supported. /// in middle attack with Windows domain authentication is not currently supported.
/// Defaults to false.
/// </summary> /// </summary>
public bool EnableWinAuth { get; set; } public bool EnableWinAuth { get; set; }
...@@ -161,12 +163,15 @@ namespace Titanium.Web.Proxy ...@@ -161,12 +163,15 @@ namespace Titanium.Web.Proxy
public bool EnableConnectionPool { get; set; } = true; public bool EnableConnectionPool { get; set; } = true;
/// <summary> /// <summary>
/// Buffer size used throughout this proxy. /// Buffer size in bytes used throughout this proxy.
/// Default value is 8192 bytes.
/// </summary> /// </summary>
public int BufferSize { get; set; } = 8192; public int BufferSize { get; set; } = 8192;
/// <summary> /// <summary>
/// Seconds client/server connection are to be kept alive when waiting for read/write to complete. /// Seconds client/server connection are to be kept alive when waiting for read/write to complete.
/// This will also determine the pool eviction time when connection pool is enabled.
/// Default value is 60 seconds.
/// </summary> /// </summary>
public int ConnectionTimeOutSeconds { get; set; } public int ConnectionTimeOutSeconds { get; set; }
...@@ -174,9 +179,9 @@ namespace Titanium.Web.Proxy ...@@ -174,9 +179,9 @@ namespace Titanium.Web.Proxy
/// <summary> /// <summary>
/// Maximum number of concurrent connections per remote host in cache. /// Maximum number of concurrent connections per remote host in cache.
/// Only valid when connection pooling is enabled. /// Only valid when connection pooling is enabled.
/// Default value is 3. /// Default value is 2.
/// </summary> /// </summary>
public int MaxCachedConnections { get; set; } = 3; public int MaxCachedConnections { get; set; } = 2;
/// <summary> /// <summary>
/// Total number of active client connections. /// Total number of active client connections.
...@@ -204,6 +209,8 @@ namespace Titanium.Web.Proxy ...@@ -204,6 +209,8 @@ namespace Titanium.Web.Proxy
/// <summary> /// <summary>
/// The buffer pool used throughout this proxy instance. /// The buffer pool used throughout this proxy instance.
/// Set custom implementations by implementing this interface.
/// By default this uses DefaultBufferPool implementation available in StreamExtended library package.
/// </summary> /// </summary>
public IBufferPool BufferPool { get; set; } public IBufferPool BufferPool { get; set; }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment