CURL.SetOptionMaxAgeConn
------------------------

Sets the maximum connection age.

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

MBS( "CURL.SetOptionMaxAgeConn"; curl; Age ) 

**MBS**( **"CURL.SetOptionMaxAgeConn";** /\* Sets the maximum connection age. \*/  
**$curl**; /\* The CURL session handle. \*/   
**$Age**) /\* The age in seconds.e.g. 180 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| curl | The CURL session handle. | $curl |
| Age | The age in seconds. | 180 |

### Result

Returns OK or error.

### Description

Sets the maximum connection age.  
The maximum age the connection should have in seconds.  
Older connections are not reused, but discarded.  
See also [MAXAGE\_CONN](https://curl.haxx.se/libcurl/c/CURLOPT_MAXAGE_CONN.html) option in CURL manual.

### See also

- [CURL.SetOptionMaxConnects](CURLSetOptionMaxConnects.md)
- [CURL.SetOptionMaxFileSize](CURLSetOptionMaxFileSize.md)
- [CURL.SetOptionMaxRedirs](CURLSetOptionMaxRedirs.md)

### Release notes

- **Version 9.3**
    - Added [CURL.SetOptionMaxAgeConn](http://www.mbsplugins.eu/CURLSetOptionMaxAgeConn.shtml) function.

### Blog Entries

- [Neues vom MBS Plugin 9.3](https://www.mbsplugins.de/archive/2019-09-13/Neues_vom_MBS_Plugin_93/monkeybreadsoftware_blog_filemaker)
- [Whats new in MBS FileMaker Plugin version 9.3](https://www.mbsplugins.de/archive/2019-08-17/Whats_new_in_MBS_FileMaker_Plu/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 9.3pr1](https://www.mbsplugins.de/archive/2019-06-03/MBS_FileMaker_Plugin_version_9/monkeybreadsoftware_blog_filemaker)

Created 22nd May 2019 , last changed 23th May 2019

  
[CURL.SetOptionMailRecipients](CURLSetOptionMailRecipients.md) - [CURL.SetOptionMaxConnects](CURLSetOptionMaxConnects.md)

[HTML Version](CURLSetOptionMaxAgeConn.shtml)