• Travis Cross's avatar
    Allow setting CURL timeout from curl API command · f1df8d60
    Travis Cross 提交于
    Previously the `timeout` option to the curl API command set only
    `CURLOPT_CONNECTTIMEOUT` -- the maximum amount of time that curl will
    wait to connect to the server.  If the server accepted the connection
    but then never replied, curl would wait essentially forever.  There
    was no way to set `CURLOPT_TIMEOUT` -- the maximum amount of time the
    entire request operation is allowed to take.
    
    With this change, the `timeout` option sets `CURLOPT_TIMEOUT`.  We've
    earlier added a `connect-timeout` option to set
    `CURLOPT_CONNECTTIMEOUT`.
    
    This is a change to existing behavior.  However, it's likely that this
    is what people expected it to do all along.  The curl application
    call, for example, accepts both `curl_connect_timeout` and
    `curl_timeout` channel variables, with the latter setting
    `CURLOPT_TIMEOUT`.
    
    If people really were relying on this odd behavior, we'll rename the
    option with the new behavior to something else and come up with a
    transition plan.
    f1df8d60
名称
最后提交
最后更新
..
applications 正在载入提交数据...
asr_tts 正在载入提交数据...
codecs 正在载入提交数据...
dialplans 正在载入提交数据...
directories/mod_ldap 正在载入提交数据...
endpoints 正在载入提交数据...
event_handlers 正在载入提交数据...
formats 正在载入提交数据...
languages 正在载入提交数据...
legacy/languages/mod_lua 正在载入提交数据...
loggers 正在载入提交数据...
say 正在载入提交数据...
sdk/autotools 正在载入提交数据...
timers 正在载入提交数据...
xml_int 正在载入提交数据...
.gitignore 正在载入提交数据...
Makefile.am 正在载入提交数据...