Commit e662451f authored by justcoding121's avatar justcoding121

uncomment with TODO

parent 8a290dbe
...@@ -263,14 +263,16 @@ namespace Titanium.Web.Proxy ...@@ -263,14 +263,16 @@ namespace Titanium.Web.Proxy
throw new Exception("Session was terminated by user."); 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. //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 //That will be more efficient especially when client is holding connection but not using it
if (EnableConnectionPool) //if (EnableConnectionPool)
{ //{
await tcpConnectionFactory.Release(serverConnection); // await tcpConnectionFactory.Release(serverConnection);
serverConnection = null; // serverConnection = null;
prefetchTask = null; // prefetchTask = null;
} //}
} }
catch (Exception e) when (!(e is ProxyHttpException)) 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