Project

General

Profile

« Previous | Next » 

Revision 6c8a2fe2

Added by nahi (Hiroshi Nakamura) over 12 years ago

  • ext/openssl/ossl_ssl.c (ossl_ssl_shutdown): Avoid randomly generated
    SSLError from SSLSocket just after invoking SSLSocket#close.
    OpenSSL's SSL_shutdown could try to send alert packet and it might
    set SSLerr(global error stack) as the result. It causes the next
    SSL read/write operation to fail by unrelated reason.

    By design, we're ignoring any error at SSL_shutdown() so we clear
    global error stack after SSL_shutdown is called. See #5039.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32658 b2dd03c8-39d4-4d8f-98ff-823fe69b080e