Skip to content

Commit

Permalink
[control-plane] Extend default timeout of HTTP server
Browse files Browse the repository at this point in the history
  • Loading branch information
mcopik committed Oct 20, 2024
1 parent 99ae8c9 commit 2736b2c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions control-plane/src/http.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ namespace praas::control_plane {
{
_logger = common::util::create_logger("HttpServer");
drogon::app().setClientMaxBodySize(cfg.max_payload_size);
// FIXME: make it configuragle
drogon::app().setIdleConnectionTimeout(120);
}

void HttpServer::run()
Expand Down Expand Up @@ -109,6 +111,7 @@ namespace praas::control_plane {
std::move(callback)](process::ProcessPtr proc, std::optional<std::string> error_msg) {
if (proc) {


Json::Value conn_description;
conn_description["type"] = "direct";
conn_description["ip-address"] = proc->handle().ip_address;
Expand Down

0 comments on commit 2736b2c

Please sign in to comment.