mirror of
https://github.com/jambonz/freeswitch-modules.git
synced 2025-12-19 06:57:44 +00:00
Fix playht timeout while downloading audio (#61)
Signed-off-by: Quan HL <quan.luuhoang8@gmail.com>
This commit is contained in:
@@ -76,7 +76,8 @@ static CURL* createEasyHandle(void) {
|
||||
|
||||
// set connect timeout to 3 seconds and total timeout to 109 seconds
|
||||
curl_easy_setopt(easy, CURLOPT_CONNECTTIMEOUT_MS, 3000L);
|
||||
curl_easy_setopt(easy, CURLOPT_TIMEOUT, 10L);
|
||||
//For long text, PlayHT took more than 20 seconds to complete the download.
|
||||
curl_easy_setopt(easy, CURLOPT_TIMEOUT, 60L);
|
||||
|
||||
return easy ;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user