Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 3B71A6336F5 for ; Mon, 17 Aug 2009 07:18:14 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 05868-03 for ; Mon, 17 Aug 2009 10:17:57 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from mail.postnewspapers.com.au (202-89-185-120.static.dsl.amnet.net.au [202.89.185.120]) by mail.postgresql.org (Postfix) with ESMTP id 09159632A6A for ; Mon, 17 Aug 2009 07:18:02 -0300 (ADT) Received: from localhost (access [127.0.0.1]) by mail.postnewspapers.com.au (Postfix) with ESMTP id B8E681E0449 for ; Mon, 17 Aug 2009 18:17:57 +0800 (WST) X-Virus-Scanned: Debian amavisd-new at postnewspapers.com.au Received: from mail.postnewspapers.com.au ([127.0.0.1]) by localhost (access.postnewspapers.com.au [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Gxg3OVpwZuQL for ; Mon, 17 Aug 2009 18:17:52 +0800 (WST) Received: from [10.1.1.6] (203-206-104-125.dyn.iinet.net.au [203.206.104.125]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "Craig Ringer", Issuer "POST Certificate Authority" (verified OK)) by mail.postnewspapers.com.au (Postfix) with ESMTPSA id 7ED7B1E044A for ; Mon, 17 Aug 2009 18:17:52 +0800 (WST) Message-ID: <4A892E50.6080402@postnewspapers.com.au> Date: Mon, 17 Aug 2009 18:17:52 +0800 From: Craig Ringer User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.1.1) Gecko/20090715 Thunderbird/3.0b3 MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: JDBC Connection broken (followup) References: <750530.72887.qm@web43140.mail.sp1.yahoo.com> In-Reply-To: <750530.72887.qm@web43140.mail.sp1.yahoo.com> 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.289 tagged_above=-10 required=5 tests=AWL=0.310, BAYES_00=-2.599 X-Spam-Level: X-Archive-Number: 200908/22 X-Sequence-Number: 19871 On 17/08/2009 4:00 PM, Michael Bell wrote: > Oh, tried this with Windows firewall off, and AV off too. Here's the logging of the last few successful, and then the unsuccessful.... It might be useful if you could: - in pg_hba.conf, set 127.0.0.1 to "trust" or change the password of the user you'll be testing with to something generic; then - use Wireshark (http://wireshark.org/) to capture traffic on the loopback interface during a failed login attempt that results in the "incomplete startup packet" error. - Change pg_hba.conf back / reset the password you changed - Post the packet trace (libpcap format) or, if it's too big, put it up somewhere people can download it and post a link to it. Doing so may or may not help - but if the results look normal you at least know the client is sending the right startup packet and it's a server side problem. "An operation was attempted on something that is not a socket" makes you wonder if the socket was closed, the backend is getting FDs (handles) mixed up, or something. I was about to suggest trying to get a log with Process Monitor (from Sysinternals) but it doesn't look like Process Monitor records TCP/IP socket activity, so it won't be much use. Sigh. Maybe the wireshark trace will be informative... -- Craig Ringer > 2009-08-17 00:56:58 PDTLOCATION: BackendInitialize, .\src\backend\postmaster\postmaster.c:3205 > 2009-08-17 00:56:58 PDTLOG: XX000: could not receive data from client: An operation was attempted on something that is not a socket. > 2009-08-17 00:56:58 PDTLOCATION: pq_recvbuf, .\src\backend\libpq\pqcomm.c:769 > 2009-08-17 00:56:59 PDTLOG: 08P01: incomplete startup packet > 2009-08-17 00:56:59 PDTLOCATION: ProcessStartupPacket, .\src\backend\postmaster\postmaster.c:1469 > > > > >