Components | All | New | MacOS | Windows | Linux | iOS | ||||
Examples | Mac & Win | Server | Client | Guides | Statistic | FMM | Blog | Deprecated | Old |
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
- Version 13.0
- Added CURL.SetOptionCACacheTimeout and CURL.SetOptionQuickExit functions.
Blog Entries
Created 22nd December 2022, last changed 7th May 2023