-
-
Notifications
You must be signed in to change notification settings - Fork 51
Open
Description
async-http/lib/async/http/client.rb
Lines 83 to 90 in 8bbf377
| def close | |
| while @pool.busy? | |
| Console.logger.warn(self) {"Waiting for #{@protocol} pool to drain: #{@pool}"} | |
| @pool.wait | |
| end | |
| @pool.close | |
| end |
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.
Metadata
Metadata
Assignees
Labels
No labels