Issue #4237 has been updated by Hiroshi NAKAMURA. Here's a link to OpenSSL doc Aaron said: http://www.openssl.org/docs/ssl/SSL_shutdown.html You should read it directly, since it's not simple as "SSL_shutdown should be called until it returns 0". We should handle -1 as well, if we want to ensure bi-directional SSL close. Plus we should check OpenSSL versions behavior. See also: https://www.honeynet.org/node/436 ---------------------------------------- http://redmine.ruby-lang.org/issues/show/4237 ---------------------------------------- http://redmine.ruby-lang.org