-
-
Notifications
You must be signed in to change notification settings - Fork 95
Closed
Description
When using async gems (e.g. async-http or async-redis) as part of a falcon request, is #close necessary for each request, or will the connections auto-close as part of falcon?
e.g.
def anything
internet = Async::HTTP::Internet.new
headers = [['accept', 'application/json']]
body = [JSON.dump(data)]
internet.post("https://httpbin.org/anything", headers, body)
ensure
internet.close
endor
def something
endpoint = Async::Redis.local_endpoint
client = Async::Redis::Client.new(endpoint)
client.set('X', 10)
ensure
client.close
endReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels