timeout
timeout [<timeout_ms>]
The timeout
command configures or displays the request timeout for this session in milliseconds(ms).
The request timeout is the amount of time that the client will wait to get a response to a request that it has sent.
If the optional timeout_ms
attribute is specified, then the request timeout is set to the specified value.
If the optional timeout_ms
attribute is not specified, then the current value of request timeout is displayed.
Example A-1 timeout
The following example gets the current value of the request timeout.
sql-> timeout
Request timeout used: 5,000ms
Example A-2 timeout
The following example set the request timeout value to 20000 milliseconds (20 seconds).
sql-> timeout 20000
Request timeout used: 20,000ms
Note:
A shell command may require multiple requests to a server or servers. The timeout applies to each such individual request. A shell command sends out multiple requests and has to wait for each of them to return before the command is finished. As a result, a shell command may have to wait for longer time than the specified timeout and this total wait could be greater than the wait time of the individual request.