generated from lostisland/faraday-adapter-template
-
Notifications
You must be signed in to change notification settings - Fork 9
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
How do I call Net::HTTP::Persistent.shutdown? #19
Comments
sudoudaisuke
changed the title
How do I call Net::HTTP::Persistent.shutdow?
How do I call Net::HTTP::Persistent.shutdown?
Apr 10, 2024
@sudoudaisuke Thank you for asking, I made the smallest implementation of #23, would you try that and see if it fits your needs? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello. I want to reuse a Net::HTTP connection. However, I want to destroy (close) the connection after one sequence operation.
sample code
I think the
conn.close
method is just callingFaraday::Adapter::NetHttpPersistent.close
. AndFaraday::Adapter::NetHttpPersistent.close
is not implemented.I think calling
@cached_connection.shutdown
is destory connections, Like this.Is there an easier way to destory a connection? Or is it a process that does not require destroying the connection?
The text was updated successfully, but these errors were encountered: