summaryrefslogtreecommitdiff
path: root/ext/openssl/lib/net
diff options
context:
space:
mode:
authorgotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-08-17 08:22:45 +0000
committergotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2003-08-17 08:22:45 +0000
commit39c4886fe761cf4cc4f4f137cf3602c9ee616184 (patch)
treeedadc927e0f71fa96d55a26318d9a11be1298803 /ext/openssl/lib/net
parent7544cb39302fc5964849d43b80472c2071f28261 (diff)
* ext/openssl/lib/openssl/ssl.rb (SSLSocket#sync_close=): add a
method to specify if the underlying IO will be closed in SSLSocket#close. * ext/openssl/lib/openssl/buffering.rb: add forwarders to setsockopt, getsockopt and fcntl. * ext/openssl/lib/net/protocols.rb: enable sync for SSLSocket. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@4400 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/openssl/lib/net')
-rw-r--r--ext/openssl/lib/net/protocols.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/openssl/lib/net/protocols.rb b/ext/openssl/lib/net/protocols.rb
index 5897716f3dd..6f646b57857 100644
--- a/ext/openssl/lib/net/protocols.rb
+++ b/ext/openssl/lib/net/protocols.rb
@@ -42,6 +42,7 @@ module Net
def ssl_connect()
@raw_socket = @socket
@socket = OpenSSL::SSL::SSLSocket.new(@raw_socket, @ssl_context)
+ @scoket.sync = true
@socket.connect
end