Commit 9a6b2a97 authored by justcoding121's avatar justcoding121

fix retry

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