com.HttpRequest.setTimeOut
Defines the timeout for a reading or writing operation.
Syntax
setTimeOut(
timeout INTEGER )
- timeout defines the number of seconds.
Usage
The setTimeOut()
method defines a delay in seconds, to wait for an HTTP request
read or write operation. If the operation is not terminated after the timeout, it returns
immediately with an error.
Use the value of -1 to define an infinite timeout.
In case of error, the method throws an exception and sets the
status
variable. Depending on the error, a human-readable description of the
problem is available in the sqlca.sqlerrm
register. See Error handling in GWS calls (status).