pgsql: Clear retry flags properly in replacement OpenSSL sock_write fun

Поиск
Список
Период
Сортировка
От Tom Lane
Тема pgsql: Clear retry flags properly in replacement OpenSSL sock_write fun
Дата
Msg-id E1Vod33-00006h-2h@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
Clear retry flags properly in replacement OpenSSL sock_write function.

Current OpenSSL code includes a BIO_clear_retry_flags() step in the
sock_write() function.  Either we failed to copy the code correctly, or
they added this since we copied it.  In any case, lack of the clear step
appears to be the cause of the server lockup after connection loss reported
in bug #8647 from Valentine Gogichashvili.  Assume that this is correct
coding for all OpenSSL versions, and hence back-patch to all supported
branches.

Diagnosis and patch by Alexander Kukushkin.

Branch
------
REL9_1_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/ad910ccdc70da627f51f9f81cd095f3ac2ffe2e5

Modified Files
--------------
src/backend/libpq/be-secure.c |    6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Clear retry flags properly in replacement OpenSSL sock_write fun
Следующее
От: Tom Lane
Дата:
Сообщение: pgsql: Clear retry flags properly in replacement OpenSSL sock_write fun