Method: HTTP::Protocol::HTTP2::Connection#receive_reset_stream
- Defined in:
- lib/http/protocol/http2/connection.rb
#receive_reset_stream(frame) ⇒ Object
303 304 305 306 307 308 309 310 311 312 313 |
# File 'lib/http/protocol/http2/connection.rb', line 303 def receive_reset_stream(frame) if stream = @streams[frame.stream_id] stream.receive_reset_stream(frame) @streams.delete(stream.id) elsif deleted_stream? frame # ignore else raise ProtocolError, "Bad stream" end end |