Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server (Not)   Client   Old   Guides   Examples
New in version: 6.1   6.2   6.3   6.4   6.5   7.0   7.1   7.2   7.3   7.4    Statistic  

CURL.SetOptionTimeOut

Sets the maximum time in seconds that you allow the transfer operation to take.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
CURL 2.5 Yes Yes Yes Yes Yes

MBS( "CURL.SetOptionTimeOut"; Handle; Value )

Parameters

Parameter Description Example value
Handle The CURL session handle. $curl
Value Timeout it seconds. 60

Result

Returns "OK" on success.

Description

Sets the maximum time in seconds that you allow the 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.

Examples

Sets timeout to one minute:

MBS( "CURL.SetOptionTimeOut"; $curl; 60 )

See also


CURL.SetOptionTimeCondition   -   CURL.SetOptionTimeValue

Feedback: Report problem or ask question.




Links
MBS Xojo Chart Plugins