refuse streams that would violate max concurrency settings.

improve ping control API
This commit is contained in:
Oliver Gould
2017-07-17 22:18:03 +00:00
parent fb4f0bc5af
commit 79d3aee1dc
9 changed files with 234 additions and 82 deletions

View File

@@ -104,7 +104,7 @@ impl<T: ControlStreams> ControlStreams for Settings<T> {
self.inner.streams_mut()
}
fn stream_is_reset(&self, id: StreamId) -> bool {
fn stream_is_reset(&self, id: StreamId) -> Option<Reason> {
self.inner.stream_is_reset(id)
}
}
@@ -124,8 +124,8 @@ impl<T: ControlPing> ControlPing for Settings<T> {
self.inner.start_ping(body)
}
fn pop_pong(&mut self) -> Option<PingPayload> {
self.inner.pop_pong()
fn take_pong(&mut self) -> Option<PingPayload> {
self.inner.take_pong()
}
}