Client::poll_ready() returns an Error if next stream ID would overflow (#103)

Closes #102
This commit is contained in:
Sean McArthur
2017-09-19 14:16:32 -07:00
committed by GitHub
parent 0c8bd75224
commit db8c109817
5 changed files with 17 additions and 6 deletions

View File

@@ -91,7 +91,7 @@ where
/// Returns `Ready` when the connection can initialize a new HTTP 2.0
/// stream.
pub fn poll_ready(&mut self) -> Poll<(), ::Error> {
Ok(self.connection.poll_send_request_ready())
self.connection.poll_send_request_ready()
}
/// Send a request on a new HTTP 2.0 stream