Skip to content

Commit

Permalink
fix(http2): don't consider an h2 send request error as canceled
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed Dec 19, 2018
1 parent 5abbe59 commit cf034e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/proto/h2/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ where
Ok(ok) => ok,
Err(err) => {
debug!("client send request error: {}", err);
let _ = cb.send(Err((::Error::new_canceled(Some(err)), None)));
let _ = cb.send(Err((::Error::new_h2(err), None)));
continue;
}
};
Expand Down

0 comments on commit cf034e9

Please sign in to comment.