Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W0rV7-0001f2-I1 for pgsql-odbc@arkaria.postgresql.org; Wed, 08 Jan 2014 11:40:45 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1W0rV5-0003JZ-QU for pgsql-odbc@arkaria.postgresql.org; Wed, 08 Jan 2014 11:40:43 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W0rV3-0003JH-W0 for pgsql-odbc@postgresql.org; Wed, 08 Jan 2014 11:40:42 +0000 Received: from sd.tpf.co.jp ([210.161.239.34]) by magus.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1W0rUz-0006kL-Oq for pgsql-odbc@postgresql.org; Wed, 08 Jan 2014 11:40:41 +0000 Received: (qmail 16890 invoked by uid 512); 8 Jan 2014 11:40:33 -0000 X-Authentication: inoue was authenticated by sd.tpf.co.jp at 8 Jan 2014 11:40:33 -0000 Received: from unknown (HELO ?192.168.1.3?) (110.5.25.6) by sd.tpf.co.jp with SMTP; 8 Jan 2014 11:40:33 -0000 Message-ID: <52CD392D.80502@tpf.co.jp> Date: Wed, 08 Jan 2014 20:40:29 +0900 From: Hiroshi Inoue User-Agent: Mozilla/5.0 (Windows NT 6.0; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Heikki Linnakangas CC: Barry Bell , PG User , Hiroshi Saito , "pgsql-odbc@postgresql.org" , Pavel Raiskup Subject: Re: support for keep alive option References: <2a73781f8438463fa97c80ce9783f7c1@BY2PR08MB281.namprd08.prod.outlook.com> <69bb317d9eb844798f4a37d1e96c9455@BY2PR08MB281.namprd08.prod.outlook.com> <52CC9246.6070908@tpf.co.jp> <52CD186E.3040504@vmware.com> In-Reply-To: <52CD186E.3040504@vmware.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -2.0 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-odbc Precedence: bulk Sender: pgsql-odbc-owner@postgresql.org (2014/01/08 18:20), Heikki Linnakangas wrote: > On 01/08/2014 01:48 AM, Inoue, Hiroshi wrote: >> Hi Barry, >> >> Sorry for the late reply. >> >> (2014/01/02 23:02), Barry Bell wrote: >>> Thanks, Alright with me to add the patch in >>> >>> But you may want to Hiroshi (He does the office and unofficial ODBC >>> driver releases), >>> >>> Hiroshi, what do you think of this? >> >> OK I would introduce the functionality. > > I don't think it should be enabled by default. It's common to expose > keepalive and other TCP settings as an option, like libpq does, but it's > not usually enabled by default, and it might be an unwelcome surprise to > some existing applications. > > In particular, if you have a dialup connection, you do *not* want an > idle connection to keep sending periodic keep-alives, because keeping > the connection open costs money. It's not as big a problem these days as > it used to be, but still. Libpq's keepalives option is on by default. So currently psqlodbc's keepalive is enabled when libpq is used(in case ssl used etc) otherwise it is disabled. Though I am about to enable keepalive by default, I'm not sure which should be the default. regards, Hiroshi Inoue -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc