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

Commit 37d1d6a

Browse files
committed
disable prefetch
1 parent 26a8ca9 commit 37d1d6a

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

examples/Titanium.Web.Proxy.Examples.WindowsService/App.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
<value>True</value>
4646
</setting>
4747
<setting name="EnableTcpServerConnectionPrefetch" serializeAs="String">
48-
<value>True</value>
48+
<value>False</value>
4949
</setting>
5050
<setting name="EnableWinAuth" serializeAs="String">
5151
<value>False</value>

examples/Titanium.Web.Proxy.Examples.WindowsService/Properties/Settings.Designer.cs

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/Titanium.Web.Proxy.Examples.WindowsService/Properties/Settings.settings

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
<Value Profile="(Default)">True</Value>
2222
</Setting>
2323
<Setting Name="EnableTcpServerConnectionPrefetch" Type="System.Boolean" Scope="Application">
24-
<Value Profile="(Default)">True</Value>
24+
<Value Profile="(Default)">False</Value>
2525
</Setting>
2626
<Setting Name="EnableWinAuth" Type="System.Boolean" Scope="Application">
2727
<Value Profile="(Default)">False</Value>

src/Titanium.Web.Proxy/ProxyServer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -182,9 +182,9 @@ public ProxyServer(string? rootCertificateName, string? rootCertificateIssuerNam
182182
/// corresponding server connection process using CONNECT hostname or SNI hostname on a separate task so that after parsing client request
183183
/// we will have the server connection immediately ready or in the process of getting ready.
184184
/// If a server connection is available in cache then this prefetch task will immediately return with the available connection from cache.
185-
/// Defaults to true.
185+
/// Defaults to false.
186186
/// </summary>
187-
public bool EnableTcpServerConnectionPrefetch { get; set; } = true;
187+
public bool EnableTcpServerConnectionPrefetch { get; set; } = false;
188188

189189
/// <summary>
190190
/// Gets or sets a Boolean value that specifies whether server and client stream Sockets are using the Nagle algorithm.

0 commit comments

Comments
 (0)