Commit 9a6b2a97 authored by justcoding121's avatar justcoding121

fix retry

parent e2098240
......@@ -213,13 +213,14 @@ namespace Titanium.Web.Proxy
//for connection pool retry fails until cache is exhausted
await retryPolicy<ServerConnectionException>().ExecuteAsync(async (context) =>
{
if (connection == null)
{
connection = await getServerConnection(args, false,
clientConnection.NegotiatedApplicationProtocol, false, cancellationToken);
connection = context.ContainsKey("connection")?
(TcpServerConnection)context["connection"]
: await getServerConnection(args, false,
clientConnection.NegotiatedApplicationProtocol,
false, cancellationToken);
context["connection"] = connection;
}
// if upgrading to websocket then relay the request without reading the contents
if (request.UpgradeToWebSocket)
......
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