Skip to content

Commit

Permalink
InsectProxyClient: avoid exclusive connection use by other client ins…
Browse files Browse the repository at this point in the history
…tance
  • Loading branch information
lyind authored and Jonas Zeiger committed Jan 22, 2020
1 parent 3d8856a commit 7b71454
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public class InsectProxyClient implements ProxyClient
private static final ExclusivityChecker EXCLUSIVITY_CHECKER = exchange -> exchange.getRequestHeaders().contains(Headers.UPGRADE);

// associates a ProxyConnection with the HttpServerExchange
private static final AttachmentKey<ConnectionHolder> CONNECTION_KEY = AttachmentKey.create(ConnectionHolder.class);
private final AttachmentKey<ConnectionHolder> CONNECTION_KEY = AttachmentKey.create(ConnectionHolder.class);

private static final AtomicXorShiftRandom CHEAP_RANDOM = new AtomicXorShiftRandom();

Expand Down Expand Up @@ -362,4 +362,4 @@ public void couldNotResolveBackend(HttpServerExchange exchange)
callback.couldNotResolveBackend(exchange);
}
}
}
}

0 comments on commit 7b71454

Please sign in to comment.