com.HTTPRequest.setTimeOut

Defines the timeout for a reading or writing operation.

Syntax

setTimeOut(
   timeout INTEGER )
  1. timeout defines the number of seconds.

Usage

The setTimeOut() method defines a delay in seconds, to wait for a 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).