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: 12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    Statistic    FMM    Blog  

CURL.SetOptionQuickExit

Whether to allow to exit quickly.

Component Version macOS Windows Linux Server iOS SDK
CURL 13.0 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "CURL.SetOptionQuickExit"; curl; Flag )   More

Parameters

Parameter Description Example
curl The CURL session handle. $curl
Flag The new setting. 1

Result

Returns OK or error.

Description

Whether to allow to exit quickly.
Pass a number as a parameter, 1 meaning that when recovering from a timeout, libcurl should skip lengthy cleanups that are intended to avoid all kinds of leaks (threads etc.), as the caller program is about to call exit() anyway. This allows for a swift termination after a DNS timeout for example, by canceling and/or forgetting about a resolver thread, at the expense of a possible (though short-lived) leak of associated resources.

This should not be needed to be used in FileMaker.

See also QUICK_EXIT option in CURL manual.

Examples

Skip cleanup for this curl session:

Set Variable [ $r ; Value: MBS( "CURL.SetOptionQuickExit"; $curl; 1 ) ]

See also

Release notes

Blog Entries

Created 22nd December 2022, last changed 7th May 2023


CURL.SetOptionPut - CURL.SetOptionQuote

💬 Ask a question or report a problem