Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id B33B51337B4A for ; Wed, 29 Dec 2010 13:34:29 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 59416-02 for ; Wed, 29 Dec 2010 17:34:22 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by mail.postgresql.org (Postfix) with ESMTP id 5B3AF1337B49 for ; Wed, 29 Dec 2010 13:34:22 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.2/8.14.2) with ESMTP id oBTHYK9r023558; Wed, 29 Dec 2010 12:34:21 -0500 (EST) To: Paul Davis cc: Kevin Grittner , pgsql-bugs@postgresql.org Subject: Re: BUG #5804: Connection aborted after many queries. In-reply-to: References: <201012291530.oBTFUCd0036612@wwwmaster.postgresql.org> <4D1B064E0200002500038D6B@gw.wicourts.gov> <12193.1293640076@sss.pgh.pa.us> Comments: In-reply-to Paul Davis message dated "Wed, 29 Dec 2010 11:59:01 -0500" Date: Wed, 29 Dec 2010 12:34:18 -0500 Message-ID: <23557.1293644058@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-1.91 tagged_above=-5 required=5 tests=BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 X-Spam-Level: X-Archive-Number: 201012/204 X-Sequence-Number: 29010 Paul Davis writes: > On Wed, Dec 29, 2010 at 11:27 AM, Tom Lane wrote: >> In all cases, you were testing a client against a server on a different >> machine, right? > Yeah, all failures were between separate machines with various > versions of OpenSSL that I never thought to keep track of. After more > Googling I've found that OS X "fixed" the renegotiation issue by > disabling it in a security fix [1]. Yeah, I can reproduce the failure pretty quickly on my Mac laptop, if I use SSL and reduce the ssl_renegotiation_limit setting to 100MB or so. The server's log looks a bit different from what you showed: LOG: SSL renegotiation failure LOG: SSL renegotiation failure LOG: SSL error: internal error LOG: could not send data to client: Connection reset by peer LOG: SSL error: internal error LOG: could not receive data from client: Connection reset by peer LOG: unexpected EOF on client connection which confirms my thought that you were working with two different openssl libraries, one of which was willing to do renegotiation and the other not. This machine is fully up-to-date, so Apple still hasn't fixed the renegotiation problem beyond the brain-dead "fix" of aborting the connection :-(. Get on the stick, Cupertino ... everybody else had this fixed six months ago. regards, tom lane