-
-
Notifications
You must be signed in to change notification settings - Fork 17
transient Async::Pool::Controller stays when the connection is closed #46
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
Comments
I will review your issue, however at first glance, isn't this wrong?
shouldn't it be |
Сode in rescue block is executed. The idea is that on the server I close the connection with an error, I catch all errors, even though I could use Async::WebSocket::ProtocolError, but then it won't catch the error, because it throws Errno::EPIPE: Broken pipe. require 'async'
require 'async/websocket'
require 'async/http'
Async do |task|
begin
endpoint = Async::HTTP::Endpoint.parse 'ws://localhost:7070/'
connection = Async::WebSocket::Client.connect endpoint
connection.read
rescue Async::WebSocket::ProtocolError => e
p e.code
connection.close
end
p task.print_hierarchy
end
|
@ioquatix if there’s anything I can do to help, let me know. |
Can you please test out the latest version and confirm the issue is fixed? Thanks! |
Yep, it works as i expected, thanks for review and async gem! |
I use this server for testing
After printing tasks hierarchy i got this
i expect that Async::Pool::Controller Gardener task was gone after connection.close, but it there
i do some fix and seems it works
#45
Is the behavior in the original considered okay? If "yes", can you explain why?
The text was updated successfully, but these errors were encountered: