Configuring TCP Keepalives
By default, the Simba Amazon Redshift ODBC Connector is configured to use TCP keepalives to prevent connections from timing out. Settings such as how frequently the connector sends TCP keepalive packets are based on the operating system defaults.
You can set the connection properties described below in a connection string or in a DSN (in the odbc.ini
file). Settings in the connection string take precedence over
settings in the DSN.
To configure TCP keepalives:
- Set the
KeepAliveIdle
property to the number of seconds of inactivity before the connector sends a TCP keepalive packet. - Set the
KeepAliveCount
property to the number of keepalive packets that can be lost before the connection is considered broken. - Set the
KeepAliveInterval
property to the number of seconds to wait before each retransmission of a keepalive packet.
Note:
To use the system default for KeepAliveIdle
, KeepAliveCount
, or KeepAliveInterval
, set the property to 0
.
To disable TCP keepalives:
- Set the
KeepAlive
property to0
.
Note:
To enable TCP keepalives after disabling them, remove the KeepAlive
property or set it to 1
.
- KeepAlive
- KeepAliveCount
- KeepAliveTime
- KeepAliveInterval
- TCP Keepalives
- Configuring the Driver on page 1