]> granicus.if.org Git - postgresql/commit
Clear retry flags properly in replacement OpenSSL sock_write function.
authorTom Lane <tgl@sss.pgh.pa.us>
Thu, 5 Dec 2013 17:48:37 +0000 (12:48 -0500)
committerTom Lane <tgl@sss.pgh.pa.us>
Thu, 5 Dec 2013 17:48:37 +0000 (12:48 -0500)
commitad910ccdc70da627f51f9f81cd095f3ac2ffe2e5
treeeda25bfac1cc977e9c53766f2ab9b40ab960144c
parente6acb956a0505572b470daf27c145e930e689b23
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.
src/backend/libpq/be-secure.c