opencast / pyCA

Python Capture Agent for Opencast
GNU Lesser General Public License v3.0
50 stars 40 forks source link

Add options to set HTTP timeouts #527

Closed mtneug closed 5 months ago

mtneug commented 6 months ago

This patch adds the ability to set the cURL options CONNECTTIMEOUT and TIMEOUT for HTTP requests.

CONNECTTIMEOUT is applied to all HTTP requests while TIMEOUT is only applied to non-ingest requests. The defaults are set to 180s and 300s, respectively.