Skip to content
This repository has been archived by the owner on Jul 9, 2023. It is now read-only.

Commit

Permalink
Disable connect pool by default.
Browse files Browse the repository at this point in the history
  • Loading branch information
justcoding121 committed Aug 23, 2022
1 parent 1e9d602 commit 6e40717
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Titanium.Web.Proxy/ProxyServer.cs
Expand Up @@ -167,14 +167,14 @@ public partial class ProxyServer : IDisposable
public bool Enable100ContinueBehaviour { get; set; }

/// <summary>
/// Should we enable server connection pool. Defaults to true.
/// Should we enable experimental server connection pool. Defaults to false.
/// When you enable connection pooling, instead of creating a new TCP connection to server for each client TCP connection,
/// we check if a server connection is available in our cached pool. If it is available in our pool,
/// created from earlier requests to the same server, we will reuse those idle connections.
/// There is also a ConnectionTimeOutSeconds parameter, which determine the eviction time for inactive server connections.
/// This will help to reduce TCP connection establishment cost, both the wall clock time and CPU cycles.
/// </summary>
public bool EnableConnectionPool { get; set; } = true;
public bool EnableConnectionPool { get; set; } = false;

/// <summary>
/// Should we enable tcp server connection prefetching?
Expand Down

0 comments on commit 6e40717

Please sign in to comment.