Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id 844451337B81 for ; Wed, 29 Dec 2010 12:28:05 -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 30346-03 for ; Wed, 29 Dec 2010 16:27:58 +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 24B011337B80 for ; Wed, 29 Dec 2010 12:27:58 -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 oBTGRuqi012194; Wed, 29 Dec 2010 11:27:56 -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> Comments: In-reply-to Paul Davis message dated "Wed, 29 Dec 2010 11:06:07 -0500" Date: Wed, 29 Dec 2010 11:27:56 -0500 Message-ID: <12193.1293640076@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/202 X-Sequence-Number: 29008 Paul Davis writes: > And this intriguing error in the server logs from around that time: > 2010-12-28 18:40:02 EST LOG: SSL renegotiation failure > 2010-12-28 18:40:02 EST LOG: SSL failed to send renegotiation request > 2010-12-28 18:40:02 EST LOG: SSL renegotiation failure > 2010-12-28 18:40:02 EST LOG: SSL error: unsafe legacy renegotiation disabled > 2010-12-28 18:40:02 EST LOG: could not send data to client: > Connection reset by peer > 2010-12-28 18:40:02 EST LOG: SSL error: unsafe legacy renegotiation disabled > 2010-12-28 18:40:02 EST LOG: could not receive data from client: > Connection reset by peer > 2010-12-28 18:40:02 EST LOG: unexpected EOF on client connection > Googling, I see something that suggests turning off SSL renegotiation > which I'll try next. In all cases, you were testing a client against a server on a different machine, right? This looks to me like you've got two different openssl libraries, one of which has a bogus partial fix for the recent SSL renegotiation security issue. I'm not sure what the state of play is in Apple's shipping version of openssl --- you might have to get an up-to-date source distribution and compile it yourself to have non-bogus renegotiation behavior. Or you could just disable renegotiation on the PG server. regards, tom lane