File tree Expand file tree Collapse file tree 1 file changed +3
-0
lines changed
src/main/java/org/hibernate/infra/sync/jira/service/jira/client Expand file tree Collapse file tree 1 file changed +3
-0
lines changed Original file line number Diff line number Diff line change 11package org .hibernate .infra .sync .jira .service .jira .client ;
22
33import java .util .Map ;
4+ import java .util .concurrent .TimeUnit ;
45import java .util .stream .Collectors ;
56
67import org .hibernate .infra .sync .jira .JiraConfig ;
@@ -23,6 +24,8 @@ public static JiraRestClient of(JiraConfig.Instance jira) {
2324 Map <String , String > headers = jira .loginKind ().headers (jiraUser .email (), jiraUser .token ());
2425
2526 QuarkusRestClientBuilder builder = QuarkusRestClientBuilder .newBuilder ().baseUri (jira .apiUri ())
27+ // specifying a timeout of 0 represents infinity
28+ .connectTimeout (0 , TimeUnit .HOURS ).readTimeout (0 , TimeUnit .HOURS )
2629 .clientHeadersFactory ((incomingHeaders , clientOutgoingHeaders ) -> {
2730 for (var entry : headers .entrySet ()) {
2831 clientOutgoingHeaders .add (entry .getKey (), entry .getValue ());
You can’t perform that action at this time.
0 commit comments