lib/async/io/ssl_socket.rb in async-io-1.43.0 vs lib/async/io/ssl_socket.rb in async-io-1.43.1

- old
+ new

@@ -61,10 +61,12 @@ end # This ensures that when the internal IO is closed, it also closes the internal socket: io.sync_close = true - @timeout = socket.timeout + if socket.respond_to?(:timeout) + @timeout = socket.timeout + end end end def local_address @io.to_io.local_address