drbrain / net-http-persistent

Thread-safe persistent connections with Net::HTTP
http://seattlerb.rubyforge.org/net-http-persistent
339 stars 117 forks source link

Question: is there a way to disconnect the keepalived connections? #117

Closed miyazakt closed 4 years ago

miyazakt commented 4 years ago

Is there a way to disconnect the keepalived connections? If the CNAME of DNS is changed, the connection is always kept, so the old one will continue to be accessed.

drbrain commented 4 years ago

Use Net::HTTP::Persistent#reconnect.

I'll update the documentation to note that it resets TLS/SSL and non-TLS/SSL connections.