[freetds] [PATCH] Configurable TCP KeepAlives

Andrew Victor avictor.za at gmail.com
Fri Aug 8 04:12:50 EDT 2008


The TCP KeepAlive is currently enabled, but uses the standard OS
setting of 2 hours.
It can be useful to detect sooner if the SQL server has disappeared or
closed the connection.

The attached patch allows the TCP KeepAlive settings to be
configurable via the freetds.conf file.
The new settings are:
   keepalive idle             (seconds)
   keepalive interval      (seconds)
   keepalive count         (counter)

If any of the above values are not configured, then the OS default will be used.

  Andrew Victor
-------------- next part --------------
A non-text attachment was scrubbed...
Name: keepalive.patch
Type: text/x-patch
Size: 5470 bytes
Desc: not available
Url : http://lists.ibiblio.org/pipermail/freetds/attachments/20080808/fc2c2f57/attachment.bin 

More information about the FreeTDS mailing list