ignore received frames on a stream locally reset for some time (#174)
- Adds config duration for how long to ignore frames on a reset stream - Adds config for how many reset streams can be held at a time
This commit is contained in:
		| @@ -1,4 +1,4 @@ | ||||
| use {FutureExt, SendFrame}; | ||||
| use {frames, FutureExt, SendFrame}; | ||||
|  | ||||
| use h2::{self, RecvError, SendError}; | ||||
| use h2::frame::{self, Frame}; | ||||
| @@ -441,6 +441,15 @@ pub trait HandleFutureExt { | ||||
|         } | ||||
|     } | ||||
|  | ||||
|     fn ping_pong(self, payload: [u8; 8]) -> RecvFrame<<SendFrameFut<Self> as IntoRecvFrame>::Future> | ||||
|     where | ||||
|         Self: Future<Item=Handle> + Sized + 'static, | ||||
|         Self::Error: fmt::Debug, | ||||
|     { | ||||
|         self.send_frame(frames::ping(payload)) | ||||
|             .recv_frame(frames::ping(payload).pong()) | ||||
|     } | ||||
|  | ||||
|     fn idle_ms(self, ms: usize) -> Box<Future<Item = Handle, Error = Self::Error>> | ||||
|     where | ||||
|         Self: Sized + 'static, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user