Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W0ruk-0002jS-Oe for pgsql-odbc@arkaria.postgresql.org; Wed, 08 Jan 2014 12:07:14 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1W0ruk-000508-80 for pgsql-odbc@arkaria.postgresql.org; Wed, 08 Jan 2014 12:07:14 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W0rui-0004zz-Eb for pgsql-odbc@postgresql.org; Wed, 08 Jan 2014 12:07:12 +0000 Received: from smtp-outbound-2.vmware.com ([208.91.2.13]) by magus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1W0ruZ-0007D6-PL for pgsql-odbc@postgresql.org; Wed, 08 Jan 2014 12:07:10 +0000 Received: from sc9-mailhost3.vmware.com (sc9-mailhost3.vmware.com [10.113.161.73]) by smtp-outbound-2.vmware.com (Postfix) with ESMTP id 3F61928606; Wed, 8 Jan 2014 04:07:00 -0800 (PST) Received: from zcs-prod-ext-mta-1.vmware.com (zcs-prod-ext-mta-1.vmware.com [10.113.62.223]) by sc9-mailhost3.vmware.com (Postfix) with ESMTP id 3A4564027B; Wed, 8 Jan 2014 04:07:00 -0800 (PST) Received: from zcs-prod-ext-mta-1.vmware.com (localhost.localdomain [127.0.0.1]) by zcs-prod-ext-mta-1.vmware.com (Postfix) with ESMTP id 8F90D120032; Wed, 8 Jan 2014 04:08:13 -0800 (PST) Received: from [192.168.1.90] (zimbra-prod-ext-proxy-vip.vmware.com [10.113.63.87]) by zcs-prod-ext-mta-1.vmware.com (Postfix) with ESMTPSA; Wed, 8 Jan 2014 04:08:11 -0800 (PST) Message-ID: <52CD3F5F.7090309@vmware.com> Date: Wed, 08 Jan 2014 14:06:55 +0200 From: Heikki Linnakangas Organization: VMware User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20131005 Icedove/17.0.9 MIME-Version: 1.0 To: Hiroshi Inoue 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> <52CD392D.80502@tpf.co.jp> In-Reply-To: <52CD392D.80502@tpf.co.jp> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: -7.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 On 01/08/2014 01:40 PM, Hiroshi Inoue wrote: > (2014/01/08 18:20), Heikki Linnakangas wrote: >> 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. Oh, I didn't realize that. > 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. I guess it would be best to enable it by default in psqlodbc as well, then. - Heikki -- Sent via pgsql-odbc mailing list (pgsql-odbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-odbc