Skip to content

Commit

Permalink
Disable HTTP Keepalive in certain tests
Browse files Browse the repository at this point in the history
* Producer side use http keepalive which cause issues in some cases of
quick restarts of the http server component
  • Loading branch information
Thopap committed Oct 3, 2023
1 parent 27428b9 commit 03bf728
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ private Exchange send(Object request, String httpMethod) throws Exception {
exchange.getMessage().setHeader(Constants.HTTP_METHOD, httpMethod);
exchange.getMessage().setHeader(Constants.HTTP_OUTGOING_HEADERS, Map.of(
"Authorization", List.of("Bearer d2h5IGFyZSB5b3UgcmVhZGluZyB0aGlzPw=="),
"Header2", List.of("Value1", "Value2", "Value3")
"Header2", List.of("Value1", "Value2", "Value3"),
"Connection", List.of("close")
));
exchange = producerTemplate.send("ch-ppq3://localhost:" + DEMO_APP_PORT, exchange);
Exception exception = Exchanges.extractException(exchange);
Expand Down

0 comments on commit 03bf728

Please sign in to comment.