Product Documentation

V9 Update Guide

Previous Topic

Next Topic

ODBC and JDBC Driver Socket SEND/RECV Timeout

A send/receive timeout option has been added such that a FairCom DB SQL ODBC or JDBC client can request a timeout for a socket. If the client experiences a lengthy wait for the server to reply, the client can continue to work after closing the connection.

A FairCom DB SQL ODBC driver can set the timeout with a call to the SQLSetConnectAttr() ODBC API function and the SQL_ATTR_CONNECTION_TIMEOUT parameter with the time value in seconds.

With the FairCom DB SQL JDBC Driver, it is possible at connection time to set a timeout value in milliseconds using the DriverManager.getConnection(string, properties) method.

TOCIndex