add test when stream window overflows before conn window

This commit is contained in:
Sean McArthur
2017-09-11 15:05:52 -07:00
parent e2cda1860b
commit 3ec0e85e56
6 changed files with 151 additions and 77 deletions

View File

@@ -326,6 +326,14 @@ pub trait HandleFutureExt {
}
}
fn ignore_settings(self) -> Box<Future<Item=Handle, Error=()>>
where Self: Sized + 'static,
Self: Future<Item=(frame::Settings, Handle)>,
Self::Error: fmt::Debug,
{
Box::new(self.map(|(_settings, handle)| handle).unwrap())
}
fn recv_frame<T>(self, frame: T) -> RecvFrame<<Self as IntoRecvFrame>::Future>
where Self: IntoRecvFrame + Sized,
T: Into<Frame>,