lib/async/io/ssl_socket.rb in async-io-1.15.2 vs lib/async/io/ssl_socket.rb in async-io-1.15.3
- old
+ new
@@ -92,9 +92,13 @@
def initialize(server, context)
@server = server
@context = context
end
+ def dup
+ self.class.new(@server.dup, @context)
+ end
+
def_delegators :@server, :local_address, :setsockopt, :getsockopt, :close, :close_on_exec=, :reactor=
attr :server
attr :context