diff options
author | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-18 13:57:48 +0000 |
---|---|---|
committer | gotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-12-18 13:57:48 +0000 |
commit | 49a667a39784b9ab2d79455582f31b6c9a118827 (patch) | |
tree | ee87a6d51089b5d0cd471693070a67a3f9f53ed9 /ext/openssl | |
parent | 92f480254b9c33907f92c74ad195327cfda2ed6f (diff) | |
download | ruby-49a667a39784b9ab2d79455582f31b6c9a118827.tar.gz ruby-49a667a39784b9ab2d79455582f31b6c9a118827.tar.xz ruby-49a667a39784b9ab2d79455582f31b6c9a118827.zip |
* ext/openssl/lib/openssl/ssl.rb (OpenSSL::SSL::SSLServer#shutdown):
new method which calls TCPSocket#shutdown of the underlying socket.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14304 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/openssl')
-rw-r--r-- | ext/openssl/lib/openssl/ssl.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/openssl/lib/openssl/ssl.rb b/ext/openssl/lib/openssl/ssl.rb index 63d6690eb..59dbea2f5 100644 --- a/ext/openssl/lib/openssl/ssl.rb +++ b/ext/openssl/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 |