From 56f8a29444d3f67d05009a6baf39b4800a3885c7 Mon Sep 17 00:00:00 2001 From: Markus Bucher Date: Tue, 5 Sep 2023 17:02:08 +0200 Subject: [PATCH] Fixes #36737 - use timeouts also for smart-proxy --- app/services/katello/pulp3/repository_mirror.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/services/katello/pulp3/repository_mirror.rb b/app/services/katello/pulp3/repository_mirror.rb index 1481fd603cb..2e88de641a1 100644 --- a/app/services/katello/pulp3/repository_mirror.rb +++ b/app/services/katello/pulp3/repository_mirror.rb @@ -144,7 +144,12 @@ def sync(options = {}) def common_remote_options remote_options = { - name: backend_object_name + name: backend_object_name, + total_timeout: Setting[:sync_total_timeout], + connect_timeout: Setting[:sync_connect_timeout_v2], + sock_connect_timeout: Setting[:sync_sock_connect_timeout], + sock_read_timeout: Setting[:sync_sock_read_timeout], + rate_limit: Setting[:download_rate_limit] } remote_options.merge!({download_concurrency: repo.download_concurrency}) if repo.download_concurrency remote_options.merge!(ssl_remote_options)