Increase comm timeout to 30 seconds (#15342)

Signed-off-by: Arne Seime <arne.seime@gmail.com>
This commit is contained in:
Arne Seime 2023-07-31 13:04:00 +02:00 committed by GitHub
parent 5dcc5214a6
commit 3080615262
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -362,7 +362,7 @@ public class MillheatAccountHandler extends BaseBridgeHandler {
return req.header("Connection", "Keep-Alive").header("X-Zc-Major-Domain", "seanywell")
.header("X-Zc-Msg-Name", "millService").header("X-Zc-Sub-Domain", "milltype").header("X-Zc-Seq-Id", "1")
.header("X-Zc-Version", "1").method(HttpMethod.POST).timeout(5, TimeUnit.SECONDS)
.header("X-Zc-Version", "1").method(HttpMethod.POST).timeout(30, TimeUnit.SECONDS)
.content(new BytesContentProvider(gson.toJson(payload).getBytes(StandardCharsets.UTF_8)), CONTENT_TYPE);
}