---
url: /process-functions/web-setwritetimeout.md
description: >-
  Sets the maximum allowed inactivity time while sending data during an HTTP
  request.
---

# web.setWriteTimeout&#x20;

Sets the maximum allowed inactivity time while sending data during an HTTP request. The default write timeout is 30 seconds.

```js
web.setWriteTimeout(seconds)
```

#### Parameters

* `seconds` (integer): The maximum time allowed for inactivity between sending chunks of data to the server.

#### Examples

```js
web.setWriteTimeout(45); // Set write timeout to 45 seconds
```

#### Notes

* This timeout does not apply to the entire time needed to send a request but rather to inactivity between writing data chunks to the server.
* If no data is sent within the specified time, the request will fail, and an error will be returned.
