summaryrefslogtreecommitdiffstats
path: root/lib/openssl/ssl.rb
diff options
context:
space:
mode:
authorgotoyuzo <gotoyuzo@ruby-lang.org>2007-12-18 13:57:48 +0000
committergotoyuzo <gotoyuzo@ruby-lang.org>2007-12-18 13:57:48 +0000
commit0c45c3199506f5c73c8533c69ad453ea69bad014 (patch)
tree4aaf256860645f50fa4b0575df470b20e7dc2e9f /lib/openssl/ssl.rb
parent89487f9975f95bbf0b9b372e054aa438f30d6315 (diff)
downloadruby-openssl-history-0c45c3199506f5c73c8533c69ad453ea69bad014.tar.gz
* ext/openssl/lib/openssl/ssl.rb (OpenSSL::SSL::SSLServer#shutdown):
new method which calls TCPSocket#shutdown of the underlying socket. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14304 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/openssl/ssl.rb')
-rw-r--r--lib/openssl/ssl.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/openssl/ssl.rb b/lib/openssl/ssl.rb
index 63d6690..59dbea2 100644
--- a/lib/openssl/ssl.rb
+++ b/lib/openssl/ssl.rb
@@ -152,6 +152,10 @@ module OpenSSL
@svr.listen(backlog)
end
+ def shutdown(how=Socket::SHUT_RDWR)
+ @svr.listen(how)
+ end
+
def accept
sock = @svr.accept
begin