Skip to content

Commit

Permalink
Use HTTP 1.1
Browse files Browse the repository at this point in the history
Signed-off-by: Artur Ciocanu <[email protected]>
  • Loading branch information
Artur Ciocanu committed Feb 17, 2025
1 parent 4112efd commit ea8d952
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions sdk/src/main/java/io/dapr/client/DaprHttpBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@ private DaprHttp buildDaprHttp(Properties properties) {
int maxRequests = properties.getValue(HTTP_CLIENT_MAX_REQUESTS);
Executor executor = Executors.newFixedThreadPool(maxRequests);
HTTP_CLIENT = HttpClient.newBuilder()
.executor(executor)
.build();
.executor(executor)
.version(HttpClient.Version.HTTP_1_1)
.build();
}
}
}
Expand Down

0 comments on commit ea8d952

Please sign in to comment.