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

Client disconnection without warnings #149

Open
djbaldey opened this issue May 6, 2021 · 0 comments
Open

Client disconnection without warnings #149

djbaldey opened this issue May 6, 2021 · 0 comments

Comments

@djbaldey
Copy link

djbaldey commented May 6, 2021

If there is a "connect" method, then why is there no "disconnect" method?

When we shut down the application, warnings of an increased level of attention appear in the Asterisk log:

 Deactivating Stasis app 'queue'
 Shutting down application 'queue'
 Destroying Stasis app queue
  == WebSocket connection from '127.0.0.1:52492' closed
    -- Remove stasis-queue/h/1, registrar=res_stasis; con=stasis-queue(0x7f5614007300); con->root=0x7f5614004a10
    -- Remove stasis-queue/_./1, registrar=res_stasis; con=stasis-queue(0x7f5614007300); con->root=0x7f5614004a10
[May  6 18:49:40] WARNING[4069]: res_http_websocket.c:518 ws_safe_read: Web socket closed abruptly
[May  6 18:49:40] WARNING[4069]: ari/ari_websockets.c:126 ast_ari_websocket_session_read: WebSocket read error: Success

The disconnect method is necessary to close the socket connection properly, and not to hard break it.

@djbaldey djbaldey changed the title Client disconnection without errors Client disconnection without warnings May 6, 2021
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