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:
		| @@ -499,6 +499,7 @@ impl Recv { | ||||
|  | ||||
|     pub fn recv_eof(&mut self, stream: &mut Stream) { | ||||
|         stream.state.recv_eof(); | ||||
|         stream.notify_send(); | ||||
|         stream.notify_recv(); | ||||
|     } | ||||
|  | ||||
|   | ||||
| @@ -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| { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user