Validate & convert messages before buffering

Malformed requests and responses should immediately result in a
RST_STREAM. To support this, received header frames are validated and
converted to Request / Response values immediately on receipt and before
buffering.
This commit is contained in:
Carl Lerche
2017-08-30 18:00:32 -04:00
parent 9bb34d907a
commit 2452cc4423
10 changed files with 246 additions and 157 deletions

View File

@@ -64,7 +64,7 @@ pub(super) struct Stream<B, P>
pub is_pending_window_update: bool,
/// Frames pending for this stream to read
pub pending_recv: buffer::Deque<Frame<Bytes>>,
pub pending_recv: buffer::Deque<recv::Event<P::Poll>>,
/// Task tracking receiving frames
pub recv_task: Option<task::Task>,