Re: [HACKERS] SSL-mode error reporting in libpq

2011-08-22 Thread Daniel Farina
On Sun, Jul 24, 2011 at 11:48 AM, Tom Lane wrote: > We could perhaps go a bit further and make pqsecure_write responsible > for the error message in non-SSL mode too, but it looks to me like > pqSendSome has to have a switch on the errno anyway to decide whether to > keep trying or not, so moving

Re: [HACKERS] SSL-mode error reporting in libpq

2011-08-10 Thread Magnus Hagander
On Sun, Jul 24, 2011 at 20:48, Tom Lane wrote: > In testing the fix for the SSL problem that Martin Pihlak reported, I > realized that libpq doesn't really cope very well with errors reported > by OpenSSL.  In the case at hand, SSL_write returns an SSL_ERROR_SSL > code, which pqsecure_write quite