Force in flight calls to abort when closing client connection
- Dominant language
- TypeScript
- Stars
- 4.8k
- Forks
- 716
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 10
Description
### Is your feature request related to a problem? Please describe.
`client.close()` returns immediately but there may still be inflight requests underway. As discussed in https://github.com/grpc/grpc-node/issues/1340 there is no way to know when all of the in-flight requests have completed. When I call `close()` to end the connection I want to be sure that everything has fully closed down and disconnected. Ideally, I'd like to force all in-flight requests to abort when I call `close()` as I don't want to receive responses after ending the connection. Maybe `close()` is not the right method for what I want? Is there another way to simply force close the connectin and abort all in flight requests?
### Describe the solution you'd like
I want a way to do a full, instant disconnect from the server, aborting all in-flight requests immediately.
### Describe alternatives you've considered
If we could get a callback once everything has shutdown as per https://github.com/grpc/grpc-node/issues/1340 that would be a start. But in my situation I don't want to wait for a bunch of in flight requests that I have no interest in any more. .I just want to do a full immediate shutdown.
(grpc-js)
Contributor guide
Assessment
This issue has not been assessed yet.