notify stream send task when receiving EOF (#178)

* notify stream send task when receiving EOF

* record a conn_error on eof so client can see it

* fix stream id overflow test
This commit is contained in:
Sean McArthur
2017-12-01 15:58:04 -08:00
committed by GitHub
parent 5d54d8cd79
commit 6c68f72fbd
3 changed files with 61 additions and 1 deletions

View File

@@ -279,6 +279,10 @@ where
let actions = &mut me.actions;
let counts = &mut me.counts;
if actions.conn_error.is_none() {
actions.conn_error = Some(io::Error::from(io::ErrorKind::BrokenPipe).into());
}
me.store
.for_each(|stream| {
counts.transition(stream, |_, stream| {