Page MenuHomeSoftware Heritage

requests: Set timeout to prevent hangs when querying external services

Authored by anlambert on Oct 1 2019, 4:41 PM.



Set timeout parameter when querying external services through the requests module.
This will prevent possible hangs of swh-web backend when a connection is made to
a service but no data is received.

Related T2028

Diff Detail

Event Timeline

anlambert created this revision.Oct 1 2019, 4:41 PM
olasd accepted this revision.Oct 1 2019, 5:45 PM

Sounds like a good first fix, thanks.

This revision is now accepted and ready to land.Oct 1 2019, 5:45 PM