Easily determine if a connection was reset
Open
- Dominant language
- Rust
- Stars
- 12.5k
- Forks
- 1.3k
- Avg merge
- 4d 7h
- Merged PRs (30d)
- 24
Description
## Feature Request
### Motivation
When consuming from a gRPC stream, it is quite normal for a connection to be reset. Unfortunately, it is difficult to match on an `Err(Status { .. })` and discern if the error is a connection having been reset. This would be nice to have given that anything other than a connection reset could be logged by an application at a level higher than debug e.g. logged as a warning.
### Proposal
As transports can vary and we cannot assume Hyper, provide a method on `Status` to determine if a connection has been reset.
### Alternatives
I attempted to parse the error source of `Status`, but this was painful and I gave up.
Contributor guide
Assessment
This issue has not been assessed yet.