WebHook.SetTimeOut
------------------

Sets the timeout for the hook.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [WebHook](component_WebHook.md) | [12.0](newinversion120.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "WebHook.SetTimeOut"; WebHook; Value ) 

**MBS**( **"WebHook.SetTimeOut"** /\* Sets the timeout for the hook. \*/  
**$WebHook**; /\* The reference number of the web hook. \*/   
**$Value**) /\* The timeout value in seconds.  
Default is 300 for 5 minutes. e.g. 5 \* 60 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| WebHook | The reference number of the web hook. | $webhook |
| Value | The timeout value in seconds.   Default is 300 for 5 minutes. | 5 \* 60 |

### Result

Returns OK or error.

### Description

Sets the timeout for the hook.  
Default is to close socket 5 minutes after last data was sent/received to avoid open connections linger around forever.  
  
For example if you receive notifications from your phone system, you may set the maximum size to 10000 bytes (via [WebHook.SetMaximumRequestSize](WebHookSetMaximumRequestSize.md) function) and a timeout of 60 seconds. That is probably 10 times more than needed, but may avoid some malicious user from sending a ton of useless traffic.  
### See also

- [WebHook.GetTimeOut](WebHookGetTimeOut.md)
- [WebHook.SetMaximumRequestSize](WebHookSetMaximumRequestSize.md)

### Release notes

- **Version 12.0**
    - Added [WebHook.GetTimeOut](https://www.mbsplugins.eu/WebHookGetTimeOut.shtml) and [WebHook.SetTimeOut](https://www.mbsplugins.eu/WebHookSetTimeOut.shtml) functions.

### Blog Entries

- [Top 10 from the MBS Plugin in 2022](https://www.mbsplugins.de/archive/2022-12-29/Top_10_from_the_MBS_Plugin_in_/monkeybreadsoftware_blog_filemaker)
- [New in MBS FileMaker Plugin 12.1](https://www.mbsplugins.de/archive/2022-03-22/New_in_MBS_FileMaker_Plugin_12/monkeybreadsoftware_blog_filemaker)
- [New in MBS FileMaker Plugin 12.0](https://www.mbsplugins.de/archive/2022-01-31/New_in_MBS_FileMaker_Plugin_12/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 11.6pr3](https://www.mbsplugins.de/archive/2021-12-14/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 10th December 2021 , last changed 20th February 2022

  
[WebHook.SetTag](WebHookSetTag.md) - [WebPolicyDelegate.AddMimeType](WebPolicyDelegateAddMimeType.md)

[HTML Version](WebHookSetTimeOut.shtml)