X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id BBA1B9DC844 for ; Wed, 25 Jan 2006 18:12:17 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 87720-03 for ; Wed, 25 Jan 2006 18:12:19 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [131.203.101.226]) by postgresql.org (Postfix) with ESMTP id 752429DC837 for ; Wed, 25 Jan 2006 18:12:14 -0400 (AST) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=[192.168.0.21]) by yass.opencloud.co.nz with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1F1ssB-0003Vq-7O; Thu, 26 Jan 2006 11:12:15 +1300 Message-ID: <43D7F7C0.20501@opencloud.com> Date: Wed, 25 Jan 2006 22:12:16 +0000 From: Oliver Jowett User-Agent: Mozilla Thunderbird 0.8 (Windows/20040913) X-Accept-Language: en-us, en MIME-Version: 1.0 To: David Hustace CC: pgsql-jdbc@postgresql.org Subject: Re: Socket read fails References: <84d3067d0601151935l581b07f1nfa231483a900518f@mail.gmail.com> <84d3067d0601242203w6cef6a9dt90fb8c45c55b2798@mail.gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.111 required=5 tests=[AWL=0.111] X-Spam-Score: 0.111 X-Spam-Level: X-Archive-Number: 200601/118 X-Sequence-Number: 14569 David Hustace wrote: > Conclusion java is doing a read on this socket, and postmaster is doing > a recv. Well, that's pretty weird. Can you reproduce this with a recent driver and loglevel=2 (append it as a URL parameter to your JDBC URL) and send me the resulting debug output offlist? It sounds like it might be hard to trigger though :( > We are considering the use of DataSource instead of the deprecated > DriverManager, since DriverManager is synchronized. Any thoughts on > the system level debugging above or the use of the DataSource Interface? I doubt that using DataSource will make any difference. From the stack traces you showed, this does not look like a Java-level deadlock at all. (I noticed that your two stack traces seem to be talking to different server versions, though.. what's up with that?) -O