lib/celluloid/io/ssl_socket.rb in celluloid-io-0.13.0.pre vs lib/celluloid/io/ssl_socket.rb in celluloid-io-0.13.0.pre2

- old
+ new

@@ -1,17 +1,17 @@ require 'openssl' module Celluloid module IO # SSLSocket with Celluloid::IO support - class SSLSocket - include CommonMethods + class SSLSocket < Stream extend Forwardable def_delegators :@socket, :read_nonblock, :write_nonblock, :close, :closed?, :cert, :cipher, :client_ca, :peer_cert, :peer_cert_chain, :verify_result def initialize(io, ctx = OpenSSL::SSL::SSLContext.new) + super() @context = ctx @socket = OpenSSL::SSL::SSLSocket.new(::IO.try_convert(io), @context) end def connect