Check whether the send side is not idle, not the recv side (#313)

* Check whether the send side is not idle, not the recv side
* Ensure sure we're handling window updates for the right side
* Add failing test
This commit is contained in:
Robert Ying
2018-10-16 12:03:56 -07:00
committed by Carl Lerche
parent a4ed6155ac
commit b116605560
2 changed files with 56 additions and 2 deletions

View File

@@ -394,8 +394,7 @@ where
);
} else {
me.actions
.recv
.ensure_not_idle(id)
.ensure_not_idle(me.counts.peer(), id)
.map_err(RecvError::Connection)?;
}
}