lib/async/io/ssl_socket.rb in async-io-1.1.0 vs lib/async/io/ssl_socket.rb in async-io-1.2.0
- old
+ new
@@ -39,11 +39,12 @@
def remote_address
@io.to_io.remote_address
end
+ # This method/implementation might change in the future, don't depend on it :)
def self.connect_socket(socket, context)
- io = wrapped_klass.new(socket.io, context)
+ io = wrapped_klass.new(socket.to_io, context)
# This ensures that when the internal IO is closed, it also closes the internal socket:
io.sync_close = true
return self.new(io, socket.reactor)