---
title: "fswa_http_connect_timeout — Filter Hook"
description: "Sets the TCP connection timeout in seconds (separate from the read timeout)."
url: "https://wpwebhooks.org/docs/fswa-http-connect-timeout/"
---

[WP Webhooks](https://wpwebhooks.org/) / [Docs](https://wpwebhooks.org/docs/) / fswa\_http\_connect\_timeout

Filter since v1.0.0

# fswa\_http\_connect\_timeout

Sets the TCP connection timeout in seconds (separate from the read timeout).

/ Signature

```
apply_filters( 'fswa_http_connect_timeout', $seconds )
```

/ When it fires

Fires when building the `wp_remote_request()` arguments for each delivery.

/ Parameters

| Name | In | Type | Req | Description |
| --- | --- | --- | --- | --- |
| $seconds | param | int | yes | Connection timeout in seconds. Default: \`2\`. |

/ Returns

`int` Connection timeout in seconds.

/ Related

[fswa\_http\_timeout](https://wpwebhooks.org/docs/fswa-http-timeout/)[fswa\_http\_args](https://wpwebhooks.org/docs/fswa-http-args/)

/Ready

## Your next automation is  
one sentence away.

[Install Plugin→](https://wordpress.org/plugins/flowsystems-webhook-actions/) [See the Plugin →](https://wpwebhooks.org/wordpress-webhook-plugin/)

$ wp plugin install flowsystems-webhook-actions --activate

## Structured data

```json
{"@context":"https://schema.org","@type":"TechArticle","name":"fswa_http_connect_timeout — Filter Hook — Webhook Actions Docs","description":"Sets the TCP connection timeout in seconds (separate from the read timeout).","url":"https://wpwebhooks.org/docs/fswa-http-connect-timeout/","isPartOf":{"@type":"WebSite","name":"WP Webhooks","url":"https://wpwebhooks.org"},"about":{"@type":"SoftwareApplication","name":"Webhook Actions","applicationCategory":"WordPress Plugin"}}
```
