Client::poll_ready and send_request may return Connection Errors (#132)

Closes #131
This commit is contained in:
Sean McArthur
2017-10-04 15:22:10 -07:00
committed by GitHub
parent 9e1a0c63cf
commit c4ca8f7def
6 changed files with 108 additions and 13 deletions

View File

@@ -337,10 +337,7 @@ where
self.ensure_can_reserve(frame.promised_id())?;
// Make sure that the stream state is valid
store[stream]
.state
.ensure_recv_open()
.map_err(|e| e.into_connection_recv_error())?;
store[stream].state.ensure_recv_open()?;
// TODO: Streams in the reserved states do not count towards the concurrency
// limit. However, it seems like there should be a cap otherwise this