Skip to content

web.setWriteTimeout ^v2.7.94 ​

Sets how long a web request waits to send the next data to the server before timing out. It limits the gaps between data, not the time to send the whole request. Defaults to 30 seconds.

If no data is sent within this time, the request is stopped and an error is returned.

js
web.setWriteTimeout(seconds)

Parameters ​

ParameterTypeDescription
secondsnumberThe seconds to wait.

Examples ​

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