fix(http2): send INTERNAL_ERROR when user's Service errors
This commit is contained in:
		| @@ -209,7 +209,12 @@ where | |||||||
|                             } |                             } | ||||||
|                             return Ok(Async::NotReady); |                             return Ok(Async::NotReady); | ||||||
|                         } |                         } | ||||||
|                         Err(e) => return Err(::Error::new_user_service(e)), |                         Err(e) => { | ||||||
|  |                             let err = ::Error::new_user_service(e); | ||||||
|  |                             warn!("http2 service errored: {}", err); | ||||||
|  |                             self.reply.send_reset(Reason::INTERNAL_ERROR); | ||||||
|  |                             return Err(err); | ||||||
|  |                         }, | ||||||
|                     }; |                     }; | ||||||
|  |  | ||||||
|                     let (head, mut body) = res.into_parts(); |                     let (head, mut body) = res.into_parts(); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user