Consider adding option to force close - killing all in-flight connections.
ioquatix opened this issue · 1 comments
ioquatix commented
async-http/lib/async/http/client.rb
Lines 83 to 90 in 8bbf377
The after
hook can hang if a test fails without closing all responses:
def after
@client&.close
@server_task&.stop
@bound_endpoint&.close
super
end
Maybe introduce @client&.close(force = true)
OR @client&.stop
(force close). I'm a little worried about side effects since the connection pool may not contain all active connections.
ioquatix commented
You could reproduce this behaviour with a test response = client.get
then raises an exception in sus.