Commit e662451f authored by justcoding121's avatar justcoding121

uncomment with TODO

parent 8a290dbe
......@@ -263,14 +263,16 @@ namespace Titanium.Web.Proxy
throw new Exception("Session was terminated by user.");
}
//TODO find why enabling this cause server connection count to go -ive
//TODO find why enabling this causes invalid httpCmd exception occationally
//With connection pool get connection for each HTTP session instead of per client connection.
//That will be more efficient especially when client is holding connection but not using it
if (EnableConnectionPool)
{
await tcpConnectionFactory.Release(serverConnection);
serverConnection = null;
prefetchTask = null;
}
//if (EnableConnectionPool)
//{
// await tcpConnectionFactory.Release(serverConnection);
// serverConnection = null;
// prefetchTask = null;
//}
}
catch (Exception e) when (!(e is ProxyHttpException))
......
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