PLBCS_RECVTIMEOUT Keyword


     PLBCS_RECVTIMEOUT={seconds}

 

This optional keyword specifies a maximum time allowed where no messages are received from the server while in a receive mode. Both the client and the server may detect errors or a situation where the client/server processes have not communicated for an extended period. If one of these cases is detected, the client and application server tasks close the socket connection and attempt to reconnect with a new socket connection. If a new connection is established, the PL/B program continues to execute without interruption. Otherwise, the connection and the PL/B program are terminated. When a reconnection process is initiated and completed, messages are posted to the log file to identify that a reconnection was performed.

 

The lack of communications is determined based on the period that a task does not receive a message. The default timeout periods are 130 seconds for the Application Server and 300 seconds for the client task. These default timeout periods can be changed by this keyword. If {seconds} is set to zero, the receive timeout is disabled and the task waits for an indeterminate time or for an error to be detected.

Example:

 

     PLBCS_RECVTIMEOUT=90

 

 

See Also: PLBSERVE Keywords, PLBSERVE Command Syntax



PL/B Application Server PLBCS_RECOVERYWAITTIME PLBCS_RETRYn