elixir-grpc / grpc

An Elixir implementation of gRPC
https://hex.pm/packages/grpc
Apache License 2.0
1.36k stars 210 forks source link

[#184] gracefully handles server process shutdown #375

Closed beligante closed 6 days ago

beligante commented 1 week ago

Fixes https://github.com/elixir-grpc/grpc/issues/184

Add pattern match to handle server process shutdown. It's very common to see these error happen when we manually setup gRPC server in our test cases. ExUnit gracefully shutdown the applications (for example), thus causing the server processes to exit with :shutdown reason.

Without this handler, a lot of error logs are produced, causing to misleading logs.