Skip to content

Commit

Permalink
Update default HTTP connection timeouts
Browse files Browse the repository at this point in the history
Re ECFLOW-1957
  • Loading branch information
marcosbento committed Dec 11, 2024
1 parent 513f542 commit b886c88
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 2 additions & 0 deletions libs/base/src/ecflow/base/HttpClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ HttpClient::HttpClient(Cmd_ptr cmd_ptr,
client_(base_url_) {

client_.set_connection_timeout(std::chrono::seconds{timeout});
client_.set_read_timeout(std::chrono::seconds{timeout});
client_.set_write_timeout(std::chrono::seconds{timeout});

// Disable cert verification
if (scheme_ == "https") {
Expand Down
3 changes: 2 additions & 1 deletion libs/base/src/ecflow/base/HttpClient.hpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

/*
* Copyright 2009- ECMWF.
*
Expand Down Expand Up @@ -32,7 +33,7 @@ class HttpClient {
const std::string& scheme,
const std::string& host,
const std::string& port,
int timeout = 60);
int timeout = 120);

void run();

Expand Down

0 comments on commit b886c88

Please sign in to comment.