Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 2F3E96328EB for ; Sun, 20 Dec 2009 23:28:16 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 20517-01 for ; Mon, 21 Dec 2009 03:28:10 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from tremor.opencloud.co.nz (tremor.opencloud.co.nz [131.203.101.230]) by mail.postgresql.org (Postfix) with ESMTP id E732B63262E for ; Sun, 20 Dec 2009 23:28:08 -0400 (AST) Received: from deluge.opencloud.co.nz ([192.168.0.16]) by tremor.opencloud.co.nz with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1NMYwI-0007RI-23; Mon, 21 Dec 2009 16:28:06 +1300 Message-ID: <4B2EEBF2.7030708@opencloud.com> Date: Mon, 21 Dec 2009 16:30:58 +1300 From: Oliver Jowett User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: Craig Ringer CC: PG-JDBC Mailing List Subject: Re: Cheapest way to poll for notifications? & Driver improvement question re SSL and notify References: <4B2267A9.1080302@postnewspapers.com.au> <4B2C7A13.9080807@postnewspapers.com.au> In-Reply-To: <4B2C7A13.9080807@postnewspapers.com.au> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-2.599 tagged_above=-10 required=5 tests=BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200912/70 X-Sequence-Number: 20151 Craig Ringer wrote: > === Why can't JDBC/SSL just test for data ready to read, anyway? === Yeah, the SSL interface does suck :( I am wondering if we should look at a dedicated read thread per connection. In the past I avoided this because it doesn't scale to large numbers of connections, and there may be some overhead from context switching on I/O (though I haven't measured this). But between issues with notifications+SSL, and the increasing number of reports of I/O deadlocks, maybe we should look at it again. -O