ksysoev / wasabi

Toolkit for Creating WebSocket API Gateways
MIT License
4 stars 2 forks source link

Client connection closure errors should be handled in backend and middleware explicitly #100

Closed ksysoev closed 6 days ago

ksysoev commented 1 week ago

Unexpectedly closed client connections should not be considered as indication of problem with backend, for examples several unexpectedly closed connection in current implementation my switch circuit breaker to open state. I think such errors should be explicitly handled in Backend and middleware where method Send is called.

I though to suppress error inside Send method... but it doesn't feel right.