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

Commit 30782ea

Browse files
Merge pull request #470 from justcoding121/master
Beta
2 parents 39fa842 + 97aa8c7 commit 30782ea

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Titanium.Web.Proxy/Network/Tcp/TcpConnectionFactory.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -273,9 +273,7 @@ private async Task<TcpServerConnection> createServerConnection(string remoteHost
273273
SendTimeout = proxyServer.ConnectionTimeOutSeconds * 1000,
274274
SendBufferSize = proxyServer.BufferSize,
275275
ReceiveBufferSize = proxyServer.BufferSize
276-
};
277-
278-
await proxyServer.InvokeConnectionCreateEvent(tcpClient, false);
276+
};
279277

280278
// If this proxy uses another external proxy then create a tunnel request for HTTP/HTTPS connections
281279
if (useUpstreamProxy)
@@ -287,6 +285,8 @@ private async Task<TcpServerConnection> createServerConnection(string remoteHost
287285
await tcpClient.ConnectAsync(remoteHostName, remotePort);
288286
}
289287

288+
await proxyServer.InvokeConnectionCreateEvent(tcpClient, false);
289+
290290
stream = new CustomBufferedStream(tcpClient.GetStream(), proxyServer.BufferPool, proxyServer.BufferSize);
291291

292292
if (useUpstreamProxy && (isConnect || isHttps))

docs/api/Titanium.Web.Proxy.ProxyServer.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -647,7 +647,7 @@ <h4 id="Titanium_Web_Proxy_ProxyServer_ProxyBasicAuthenticateFunc" data-uid="Tit
647647
<div class="markdown level1 conceptual"></div>
648648
<h5 class="decalaration">Declaration</h5>
649649
<div class="codewrapper">
650-
<pre><code class="lang-csharp hljs">public Func&lt;string, string, Task&lt;bool&gt;&gt; ProxyBasicAuthenticateFunc { get; set; }</code></pre>
650+
<pre><code class="lang-csharp hljs">public Func&lt;SessionEventArgsBase, string, string, Task&lt;bool&gt;&gt; ProxyBasicAuthenticateFunc { get; set; }</code></pre>
651651
</div>
652652
<h5 class="propertyValue">Property Value</h5>
653653
<table class="table table-bordered table-striped table-condensed">
@@ -659,7 +659,7 @@ <h5 class="propertyValue">Property Value</h5>
659659
</thead>
660660
<tbody>
661661
<tr>
662-
<td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.func-3">Func</a>&lt;<a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a>, <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a>, <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.threading.tasks.task-1">Task</a>&lt;<a class="xref" href="https://docs.microsoft.com/dotnet/api/system.boolean">Boolean</a>&gt;&gt;</td>
662+
<td><a class="xref" href="https://docs.microsoft.com/dotnet/api/system.func-4">Func</a>&lt;<a class="xref" href="Titanium.Web.Proxy.EventArguments.SessionEventArgsBase.html">SessionEventArgsBase</a>, <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a>, <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.string">String</a>, <a class="xref" href="https://docs.microsoft.com/dotnet/api/system.threading.tasks.task-1">Task</a>&lt;<a class="xref" href="https://docs.microsoft.com/dotnet/api/system.boolean">Boolean</a>&gt;&gt;</td>
663663
<td></td>
664664
</tr>
665665
</tbody>

0 commit comments

Comments
 (0)