lib/http/2/connection.rb in mieps_http-2-0.8.1 vs lib/http/2/connection.rb in mieps_http-2-0.8.2

- old
+ new

@@ -617,10 +617,10 @@ # @param window [Integer] # @param parent [Stream] def activate_stream(id: nil, **args) connection_error(msg: 'Stream ID already exists') if @streams.key?(id) - stream = Stream.new({ connection: self, id: id }.merge(args)) + stream = Stream.new(self, id, {}.merge(args)) # Streams that are in the "open" state, or either of the "half closed" # states count toward the maximum number of streams that an endpoint is # permitted to open. stream.once(:active) { @active_stream_count += 1 }