Commit 171d3e8e authored by justcoding121's avatar justcoding121

refeactor cleanup

parent 7597ecc0
......@@ -189,7 +189,8 @@ namespace Titanium.Web.Proxy
prefetchTask = null;
}
// create a new connection if cache key changes
// create a new connection if cache key changes.
// only gets hit when connection pool is disabled.
if (serverConnection != null
&& (await getConnectionCacheKey(args, false,
clientConnection.NegotiatedApplicationProtocol)
......@@ -245,7 +246,8 @@ namespace Titanium.Web.Proxy
break;
}
if (args.WebSession.ServerConnection == null)
//user requested
if (args.WebSession.Response.TerminateResponse)
{
closeServerConnection = true;
return;
......
......@@ -62,10 +62,6 @@ namespace Titanium.Web.Proxy
// syphon out the response body from server before setting the new body
await args.SyphonOutBodyAsync(false, cancellationToken);
}
else
{
args.WebSession.ServerConnection = null;
}
return;
}
......
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