Re: BUG #5804: Connection aborted after many queries. - Mailing list pgsql-bugs

From Paul Davis
Subject Re: BUG #5804: Connection aborted after many queries.
Date
Msg-id AANLkTinTL909UdO8BqmcerOtSDC5K5R4cU-a39vJ0mqX@mail.gmail.com
Whole thread Raw
In response to Re: BUG #5804: Connection aborted after many queries.  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
Responses Re: BUG #5804: Connection aborted after many queries.  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
On Wed, Dec 29, 2010 at 10:58 AM, Kevin Grittner
<Kevin.Grittner@wicourts.gov> wrote:
> "Paul J. Davis" <paul.joseph.davis@gmail.com> wrote:
>
>> After running many queries (millions) a connection will report an
>> error that the server has unexpectedly closed the connection.
>
> What message are you getting? =A0(Copy/paste is a good thing.)
>
> What do you see in the server log at the time of failure?
>
> Are you using a connection pool?
>
> -Kevin
>

Doh, that was on my list of things to add but managed to forget.

The error message reported by the client:

DECLARE CURSOR failed: server closed the connection unexpectedly
    This probably means the server terminated abnormally
    before or while processing the request.

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 disabl=
ed
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 disabl=
ed
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.

pgsql-bugs by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: BUG #5804: Connection aborted after many queries.
Next
From: Tom Lane
Date:
Subject: Re: BUG #5804: Connection aborted after many queries.