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

Commit 1d70577

Browse files
committed
disable connection pool for win authenticated streams
1 parent 08a23db commit 1d70577

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Titanium.Web.Proxy/RequestHandler.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,9 @@ await handleWebSocketUpgrade(httpCmd, args, request,
259259
//Get/release server connection for each HTTP session instead of per client connection.
260260
//This will be more efficient especially when client is idly holding server connection
261261
//between sessions without using it.
262-
if (EnableConnectionPool)
262+
//Do not release authenticated connections for performance reasons.
263+
//Otherwise it will keep authenticating per session.
264+
if (EnableConnectionPool && !connection.IsWinAuthenticated)
263265
{
264266
await tcpConnectionFactory.Release(connection);
265267
connection = null;

0 commit comments

Comments
 (0)