Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

no match of right hand side value in gun_ws:dispatch #338

Open
ziopio opened this issue Jul 1, 2024 · 0 comments
Open

no match of right hand side value in gun_ws:dispatch #338

ziopio opened this issue Jul 1, 2024 · 0 comments

Comments

@ziopio
Copy link

ziopio commented Jul 1, 2024

We had this ugly crash caused by an unhandled error value returned from send. It would be nice to catch this and close the process in a clean way.

=CRASH REPORT==== 2-Jan-1988::14:26:04.205654 ===
  crasher:
    initial call: gun:init/1
    pid: <0.1761.0>
    registered_name: []
    exception error: no match of right hand side value {{error,closed},
                                                        undefined}
      in function  gun_ws:dispatch/7 (/Users/***/***/***/_build/default/lib/gun/src/gun_ws.erl, line 254)
      in call from gun_ws:handle/5 (/Users/***/***/***/_build/default/lib/gun/src/gun_ws.erl, line 148)
      in call from gun:handle_common_connected_no_input/4 (/Users/***/***/***/_build/default/lib/gun/src/gun.erl, line 1423)
      in call from gen_statem:loop_state_callback/11 (gen_statem.erl, line 1426)
    ancestors: [gun_conns_sup,gun_sup,<0.593.0>]

This crash is rare, we only got it once

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant