Product Documentation

V9 Update Guide

Previous Topic

Next Topic

TCP/IP Client Connect and Communication Timeout Options

The FairCom DB client library now supports a timeout on TCP/IP socket send and receive operations. The timeout is configured on a per-connection basis and is disabled by default. To set a socket timeout, after connecting to FairCom DB, set the FairCom DB connection-specific global variable ctsocktimeout to the desired timeout value in seconds. If a TCP/IP send or receive operation blocks for more than the specified number of seconds, the c-tree client returns a fatal communication error ARQS_ERR (127) or ARSP_ERR (128). This timeout value can be changed at any time, and takes effect on the next socket call.

To facilitate detection of this condition, two new error codes have been introduced and are returned when a socket operation times out:

Symbolic Error Code

Error Code

Explanation

TRQS_ERR

808

Request timed out.

TRSP_ERR

809

Response timed out.

TOCIndex