Page MenuHomeSoftware Heritage

SWHRemoteAPI: Enable to set timeout on the sent requests
Closed, ResolvedPublic

Description

Currently, no timeout values are set when sending HTTP requests to external SWH servers (for instance swh-indexer).

As the Python requests module does not set any timeout values by default, this can result in code hanging for minutes
or more in client applications (for instance in swh-web when requesting filetype, language or license when one wants
to display a content).

Being able to set timeout values to use within the SWHRemoteAPI class through configuration would be a nice feature
to have.

Related T1060

Event Timeline

anlambert triaged this task as Normal priority.
ardumont added a project: Restricted Project.May 24 2018, 11:04 AM
ardumont changed the task status from Open to Work in Progress.May 24 2018, 11:44 AM
ardumont closed this task as Resolved.May 24 2018, 12:12 PM
ardumont claimed this task.
zack moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.May 24 2018, 2:46 PM
zack moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.
zack moved this task from Restricted Project Column to Restricted Project Column on the Restricted Project board.May 25 2018, 1:02 PM