Skip to content

Commit

Permalink
test: close exchange on AbstractSimultaneousConnectionsTest
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Nuri <[email protected]>
  • Loading branch information
manusa committed Dec 16, 2024
1 parent b6913be commit d46c247
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ private void withHttp1() {
@DisabledOnOs(OS.WINDOWS)
public void http1Connections() throws Exception {
final DelayedResponseHandler handler = new DelayedResponseHandler(MAX_HTTP_1_CONNECTIONS,
exchange -> exchange.sendResponseHeaders(204, -1));
exchange -> {
exchange.sendResponseHeaders(204, -1);
exchange.close();
});
httpServer.createContext("/http", handler);
try (final HttpClient client = clientBuilder.build()) {
final Collection<CompletableFuture<HttpResponse<AsyncBody>>> asyncResponses = ConcurrentHashMap.newKeySet();
Expand Down

0 comments on commit d46c247

Please sign in to comment.