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

close-connection causes websocket read thread to spin and use 100% CPU #49

Open
eeeeeta opened this issue Apr 8, 2020 · 0 comments
Open

Comments

@eeeeeta
Copy link

eeeeeta commented Apr 8, 2020

When calling wsd:close-connection on a connection object, the websocket read thread associated with that object starts using 100% CPU trying to call READ-SEQUENCE, erroring out (because the stream is closed), and then for some reason it ignores the error and retries ad infinitum.

I worked around this with bt:destroy-thread in my application, but ideally the read thread should be properly closed when the connection is... (and, for that matter, probably shouldn't ignore read errors either)

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