Re: Failing SSL connection due to weird interaction with openssl

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: Failing SSL connection due to weird interaction with openssl
Дата
Msg-id 20121126225957.GG4227@alvh.no-ip.org
обсуждение исходный текст
Ответ на Failing SSL connection due to weird interaction with openssl  (Lars Kanis <lars@greiz-reinsdorf.de>)
Ответы Re: Failing SSL connection due to weird interaction with openssl  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
Lars Kanis wrote:
> While investigating a ruby-pg issue [1], we noticed that a libpq SSL
> connection can fail, if the running application uses OpenSSL for
> other work, too. Root cause is the thread local error queue of
> OpenSSL, that is used to transmit textual error messages to the
> application after a failed crypto operation. In case that the
> application leaves errors on the queue, the communication to the
> PostgreSQL server can fail with a message left from the previous
> failed OpenSSL operation, in particular when using non-blocking
> operations on the socket. This issue with openssl is quite old now -
> see [3].

I gather that this is supposed to be back-patched to all supported
branches.

> [3] http://www.educatedguesswork.org/movabletype/archives/2005/03/curse_you_opens.html

This link is dead.  Here's one that works:
http://www.educatedguesswork.org/2005/03/curse_you_opens.html


--
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Merlin Moncure
Дата:
Сообщение: Re: Removing PD_ALL_VISIBLE
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Further pg_upgrade analysis for many tables