CURL.SetOptionQuickExit
-----------------------

Whether to allow to exit quickly.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [CURL](component_CURL.md) | [13.0](newinversion130.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "CURL.SetOptionQuickExit"; curl; Flag ) 

**MBS**( **"CURL.SetOptionQuickExit";** /\* Whether to allow to exit quickly. \*/  
**$curl**; /\* The CURL session handle. \*/   
**$Flag**) /\* The new setting.e.g. 1 \*/ 

### 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](https://curl.haxx.se/libcurl/c/CURLOPT_QUICK_EXIT.html) option in CURL manual.

### Examples

Skip cleanup for this curl session:

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

- [CURL.SetOptionPipeWait](CURLSetOptionPipeWait.md)

### Release notes

- **Version 13.0**
    - Added [CURL.SetOptionCACacheTimeout](https://www.mbsplugins.eu/CURLSetOptionCACacheTimeout.shtml) and [CURL.SetOptionQuickExit](https://www.mbsplugins.eu/CURLSetOptionQuickExit.shtml) functions.

### Blog Entries

- [New in MBS FileMaker Plugin 13.0](https://www.mbsplugins.de/archive/2023-01-24/New_in_MBS_FileMaker_Plugin_13/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 13.0pr5](https://www.mbsplugins.de/archive/2023-01-02/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

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

  
[CURL.SetOptionPut](CURLSetOptionPut.md) - [CURL.SetOptionQuote](CURLSetOptionQuote.md)

[HTML Version](CURLSetOptionQuickExit.shtml)