Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Set operation and request httpx timeouts.

Pavel Balashou0386fcebae1d
diff --git a/config/constants/settings/definition.rb b/config/constants/settings/definition.rb
index 5fce328a34e..7bc12878aa7 100644
--- a/config/constants/settings/definition.rb
+++ b/config/constants/settings/definition.rb
@@ -742,6 +742,20 @@ module Settings
allowed: (0..),
default: 3
},
+ httpx_operation_timeout: {
+ description: '',
+ format: :float,
+ writable: false,
+ allowed: (0..),
+ default: 10
+ },
+ httpx_request_timeout: {
+ description: '',
+ format: :float,
+ writable: false,
+ allowed: (0..),
+ default: 10
+ },
httpx_read_timeout: {
description: '',
format: :float,
diff --git a/lib/open_project.rb b/lib/open_project.rb
index f3518182137..e154bb70a5c 100644
--- a/lib/open_project.rb
+++ b/lib/open_project.rb
@@ -58,6 +58,8 @@ module OpenProject
.with(
timeout: {
connect_timeout: OpenProject::Configuration.httpx_connect_timeout,
+ operation_timeout: OpenProject::Configuration.httpx_operation_timeout,
+ request_timeout: OpenProject::Configuration.httpx_request_timeout,
write_timeout: OpenProject::Configuration.httpx_write_timeout,
read_timeout: OpenProject::Configuration.httpx_read_timeout,
keep_alive_timeout: OpenProject::Configuration.httpx_keep_alive_timeout