From 055b6db8dc03fa53c0a4e738cadde4fa4342a3e5 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 9 May 2015 00:08:46 +0000 Subject: openssl_client: remove shutdown call 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. --- lib/yahns/openssl_client.rb | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'lib') 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 -- cgit v1.2.3-24-ge0c7