diff options
author | Eric Wong <e@80x24.org> | 2015-05-09 00:08:46 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2015-05-09 00:08:46 +0000 |
commit | 055b6db8dc03fa53c0a4e738cadde4fa4342a3e5 (patch) | |
tree | 8bcf5553c7b41ad937f140976a57d22576206fd8 /lib | |
parent | 6da1aae4f04662900bea4b816f0c6dd195ea9ee5 (diff) | |
download | yahns-055b6db8dc03fa53c0a4e738cadde4fa4342a3e5.tar.gz |
OpenSSL::SSL::SSLSocket does not actually respond to a shutdown method, and it would not be safe to call anyways. Merely shutdown at the OS level and let any handling thread clean it up.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/yahns/openssl_client.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/yahns/openssl_client.rb b/lib/yahns/openssl_client.rb index 619e316..5842e97 100644 --- a/lib/yahns/openssl_client.rb +++ b/lib/yahns/openssl_client.rb @@ -42,13 +42,8 @@ module Yahns::OpenSSLClient # :nodoc: @ssl.read_nonblock(len, buf, exception: false) end - def shutdown(*args) - @ssl.shutdown(*args) - super # BasicSocket#shutdown - end - def close - @ssl.close + @ssl.close # flushes SSLSocket super # IO#close end end |