elixir-grpc / grpc

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

Gun messages are not handled by GRPC library #340

Open davydog187 opened 7 months ago

davydog187 commented 7 months ago

Describe the bug When connected to a GRPC service as a client, if that service goes down, or the connection is otherwise lost, :gun_down and :gun_up messages will be received from the calling process.

This behavior is a bit unexpected as Gun is an implementation detail of the library, and no where is it documented that these messages should be handled by the consumer of this library

To Reproduce Steps to reproduce the behavior:

  1. Start a GRPC service
  2. Connect to it with this library
  3. Kill the GRPC service
  4. Observe that :gun_down message is received by the client

Expected behavior Adapter lifecycle messages are abstracted by the library

mickel8 commented 7 months ago

Sounds like a duplicate of #337