我在c中的应用程序(A)使curl调用另一台机器启动另一个应用程序(B).当由A进行卷曲调用时,它等待直到B完成它的工作.所以我只是想问一下应用程序A的默认超时是什么,或者默认情况下是禁用无限超时?
从
http://curl.haxx.se/libcurl/c/curl_easy_setopt.html起
07001
Pass a long. It should contain the maximum time
in seconds that you allow the connection to the server to take. This
only limits the connection phase,once it has connected,this option
is of no more use. Set to zero to switch to the default built-in
connection timeout – 300 seconds. See also the CURLOPT_TIMEOUT option.
.
07002
Pass a long as parameter containing the maximum time in seconds that
you allow the libcurl transfer operation to take. Normally,name
lookups can take a considerable time and limiting operations to less
than a few minutes risk aborting perfectly normal operations. This
option will cause curl to use the SIGALRM to enable time-outing system
calls.
In unix-like systems,this might cause signals to be used unless
CURLOPT_NOSIGNAL is set.
Default timeout is 0 (zero) which means it never times out.