111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
|
# File 'lib/http/protocol/http2/connection.rb', line 111
def read_frame
frame = @framer.read_frame(@local_settings.maximum_frame_size)
yield frame if block_given?
frame.apply(self)
return frame
rescue ProtocolError => error
send_goaway(error.code || PROTOCOL_ERROR, error.message)
raise
rescue HTTP::HPACK::CompressionError => error
send_goaway(COMPRESSION_ERROR, error.message)
raise
rescue
send_goaway(PROTOCOL_ERROR, $!.message)
raise
end
|