UPDATE
1.5
In Agent.request, by default, there is only the connectTimeout parameter, in fact, as in any other method tied to the HTTPClientFactory. This timeout only affects the TCP connection setup timeout. Setting it to 5 means that if a TCP connection to the HTTP server for a specific URL cannot be established in less than 5 seconds, the request attempt will fail with a timeout error. However, if the connection is successfully established, the timeout no longer matters. If the server takes 10 hours to send you a response, the agent will sit and wait 10 hours.
This release fixes this situation and adds a timeout for the maximum allowed response time. The default is 10 sec. In other words, if we have not received the target file in 10 seconds, this will be considered a timeout error, and the download of the file will be interrupted. Yesterday morning the provider Glanz was giving away its EPG file for more than 3 hours. It is unacceptable.