web.setTransferTimeout
Sets the maximum time allowed for data transfer during an HTTP request before timing out. The default transfer timeout is 600 seconds (10 minutes).
js
web.setTransferTimeout(seconds)
Parameters
seconds
(integer): The number of seconds before the data transfer times out.
Examples
js
web.setTransferTimeout(60); // Set transfer timeout to 60 seconds
Notes
- This timeout applies after the connection has been successfully established and governs how long the system waits for data transfer to complete.
- If a response takes longer than the specified timeout, the request will be aborted, and an error will be returned.