[freetds] Keepalives (was Sybase disconnect after idle)
mdupuis at ocg.ca
Thu Feb 23 17:05:05 EST 2012
I installed freetds from rpm (on CentOS 5.7) so not sure if that was compiled in by whomever created the package.
When does .92 come out?
From: freetds-bounces at lists.ibiblio.org [freetds-bounces at lists.ibiblio.org] On Behalf Of Frediano Ziglio [freddy77 at gmail.com]
Sent: Thursday, February 23, 2012 2:41 PM
To: FreeTDS Development Group
Subject: Re: [freetds] Keepalives (was Sybase disconnect after idle)
2012/2/23 Michelle Dupuis <mdupuis at ocg.ca>:
> It looks like the problem is the OS or a firewall is terminating the connection after lengthy idle periods on the client.
> A google search turned up a patch to freetds with "keepalive" settings (back in 2008) but I haven't seen mention of it since.
> Did this patch make it into freetds 0.91 ? If so, can I just set "keepalive interval 600" in my freetds.conf ?
>From my code KEEPALIVE is set in 0.91 and 0.92 by these rows in src/tds/net.c
len = 1;
setsockopt(tds->s, SOL_SOCKET, SO_KEEPALIVE, (const void *)
perhaps for some reasons SO_KEEPALIVE is not defined ??
FreeTDS mailing list
FreeTDS at lists.ibiblio.org
More information about the FreeTDS