Fix some flow control bugs. (#152)
* Release stream capacity back to the connection to avoid capacity leaks. * Actually notify waiting tasks when capacity becomes available.
This commit is contained in:
		| @@ -35,8 +35,6 @@ impl Future for WaitForCapacity { | ||||
|  | ||||
|         let act = self.stream().capacity(); | ||||
|  | ||||
|         println!("CAP={:?}", act); | ||||
|  | ||||
|         if act >= self.target { | ||||
|             return Ok(self.stream.take().unwrap().into()); | ||||
|         } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user