Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 9.5   10.0   10.1   10.2   10.3   10.4   10.5   11.0   11.1   11.2    Statistic    FMM    Blog  

CURL.SetOptionConnectTimeoutMS

Sets the connection timeout in milliseconds.

Component Version macOS Windows Linux Server iOS SDK
CURL 2.5 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "CURL.SetOptionConnectTimeoutMS"; curl; Value )   More

Parameters

Parameter Description Example
curl The CURL session handle. $curl
Value The connection timeout time in milliseconds. 300000

Result

Returns "OK" on success.

Description

Sets the connection timeout in milliseconds.
Like CURL.SetOptionConnectionTimeout but takes the number of milliseconds instead. If libcurl is built to use the standard system name resolver, that portion of the connect will still use full-second resolution for timeouts with a minimum timeout allowed of one second.

See also CONNECTTIMEOUT_MS option in CURL manual.

See also

Created 18th August 2014, last changed 18th August 2014


CURL.SetOptionConnectOnly - CURL.SetOptionConnectTo

Feedback: Report problem or ask question.