Re: BUG #5585: SSL problems with long COPYs - Mailing list pgsql-bugs

From Alex Hunsaker
Subject Re: BUG #5585: SSL problems with long COPYs
Date
Msg-id AANLkTi=XaJRvYmbM_OUj4MpksZWR1akZ_JYrUVMGzj41@mail.gmail.com
Whole thread Raw
In response to BUG #5585: SSL problems with long COPYs  ("Karl Denninger" <karl@denninger.net>)
Responses Re: BUG #5585: SSL problems with long COPYs  (Karl Denninger <karl@denninger.net>)
List pgsql-bugs
On Sun, Aug 1, 2010 at 00:08, Karl Denninger <karl@denninger.net> wrote:
>
> The following bug has been logged online:
>
> Bug reference: =C2=A0 =C2=A0 =C2=A05585
> Logged by: =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Karl Denninger
> Email address: =C2=A0 =C2=A0 =C2=A0karl@denninger.net
> PostgreSQL version: 8.4.4
> Operating system: =C2=A0 FreeBSD 8.0
> Description: =C2=A0 =C2=A0 =C2=A0 =C2=A0SSL problems with long COPYs
> Details:
>
> This is a copy of a message I posted this evening on the SLONY list.
>
> Synopsis: With SSL ON a large table copy containing a BYTEA field fails
> repeatedly a few minutes into the operation.

My guess is its due to the server or client disabling ssl
renegotiation, per the docs:

ssl_renegotiation_limit (integer)
Specifies how much data can flow over an SSL encrypted connection
before renegotiation of the session will take place. Renegotiation of
the session decreases the chance of doing cryptanalysis when large
amounts of data are sent, but it also carries a large performance
penalty. The sum of sent and received traffic is used to check the
limit. If the parameter is set to 0, renegotiation is disabled. The
default is 512MB.

Note: SSL libraries from before November 2009 are insecure when using
SSL renegotiation, due to a vulnerability in the SSL protocol. As a
stop-gap fix for this vulnerability, some vendors also shipped SSL
libraries incapable of doing renegotiation. If any of these libraries
are in use on the client or server, SSL renegotiation should be
disabled.

Id try setting that to 0 in your postgresql.conf and see if it still fails.

pgsql-bugs by date:

Previous
From: "Karl Denninger"
Date:
Subject: BUG #5585: SSL problems with long COPYs
Next
From: Karl Denninger
Date:
Subject: Re: BUG #5585: SSL problems with long COPYs