Skip to content

Commit

Permalink
test: set content length = 0 in abstract simultaneous connections test
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Nuri <[email protected]>
  • Loading branch information
manusa authored Dec 16, 2024
1 parent b6913be commit 6aa1076
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ 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, 0));
httpServer.createContext("/http", handler);
try (final HttpClient client = clientBuilder.build()) {
final Collection<CompletableFuture<HttpResponse<AsyncBody>>> asyncResponses = ConcurrentHashMap.newKeySet();
Expand Down

0 comments on commit 6aa1076

Please sign in to comment.