Project

Profile

Help

Story #7201

closed

As a user I can set http connection timeout and read timeout

Added by bmbouter almost 4 years ago. Updated over 3 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
Start date:
Due date:
% Done:

100%

Estimated time:
Platform Release:
Groomed:
No
Sprint Candidate:
No
Tags:
Katello
Sprint:
Sprint 86
Quarter:

Description

Problem

In Pulp2 it is possible to set the hp connection timeout and read timeouts https://docs.pulpproject.org/en/2.21/user-guide/server.html?highlight=connect_timeout. This recently helped me resolve an issue an with a few repos in Pulp that were failing to sync. In Pulp3 documentation setting these timeouts is discussed in https://docs.pulpproject.org/plugins/api-reference/download.html?highlight=timeout, however it is only if you are a plugin in developer.

As a user I need to be able to set this for my environment.

Solution

Add these timeouts to BaseRemote so they would automatically be available to all plugins.

  • total_timeout - This is a float field, measured in second. This would drive the ClientTimeout.total field in aiohttp. Pulp default is 5 min. None or 0 disables a particular timeout check.
  • connect_timeout - This is a float field, measured in second. This would drive the ClientTimeout.connect field in aiohttp. Pulp default is None. None or 0 disables a particular timeout check.
  • sock_connect_timeout - This is a float field, measured in second. This would drive the ClientTimeout.sock_connect field in aiohttp. Pulp default is None. None or 0 disables a particular timeout check.
  • sock_read_timeout - This is a float field, measured in second. This would drive the ClientTimeout.sock_read field in aiohttp. Pulp default is None. None or 0 disables a particular timeout check.

Related issues

Has duplicate Pulp - Story #4905: As a user, I can set download timeoutsCLOSED - DUPLICATE

Actions

Also available in: Atom PDF