Skip to content

Commit d3f94ee

Browse files
committed
Update default HTTP connection timeouts
Re ECFLOW-1957
1 parent d36d36b commit d3f94ee

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

libs/base/src/ecflow/base/HttpClient.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ HttpClient::HttpClient(Cmd_ptr cmd_ptr,
3333
client_(base_url_) {
3434

3535
client_.set_connection_timeout(std::chrono::seconds{timeout});
36+
client_.set_read_timeout(std::chrono::seconds{timeout});
37+
client_.set_write_timeout(std::chrono::seconds{timeout});
3638

3739
// Disable cert verification
3840
if (scheme_ == "https") {

libs/base/src/ecflow/base/HttpClient.hpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
/*
23
* Copyright 2009- ECMWF.
34
*
@@ -32,7 +33,7 @@ class HttpClient {
3233
const std::string& scheme,
3334
const std::string& host,
3435
const std::string& port,
35-
int timeout = 60);
36+
int timeout = 120);
3637

3738
void run();
3839

0 commit comments

Comments
 (0)