websocket-driver icon indicating copy to clipboard operation
websocket-driver copied to clipboard

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

Open eeeeeta opened this issue 4 years ago • 0 comments

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)

eeeeeta avatar Apr 08 '20 10:04 eeeeeta