diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2015-08-06 11:13:37 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2015-08-06 11:13:37 +0900 |
commit | bb9b7d972a45d026fe5e12b57eb352c1f0631ff7 (patch) | |
tree | c1a89c058f8c61a21b001ab610bf0cc3b71b963c /lib/plum/stream.rb | |
parent | e508d5b63ebd370bc977ab2c6748dd8f95b2dbae (diff) | |
download | plum-bb9b7d972a45d026fe5e12b57eb352c1f0631ff7.tar.gz |
endpoint MUST discard unsupported (unknown) frame
Diffstat (limited to 'lib/plum/stream.rb')
-rw-r--r-- | lib/plum/stream.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/plum/stream.rb b/lib/plum/stream.rb index b7e3029..98df787 100644 --- a/lib/plum/stream.rb +++ b/lib/plum/stream.rb @@ -46,8 +46,10 @@ module Plum process_window_update(frame) when :continuation process_continuation(frame) - else # :ping, :goaway, :settings, :push_promise + when :ping, :goaway, :settings, :push_promise raise Plum::ConnectionError.new(:protocol_error) # stream_id MUST be 0x00 + else + # MUST ignore unknown frame end rescue Plum::StreamError => e callback(:stream_error, e) |