drbrain / net-http-persistent

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

Certificates & shared connection #45

Open jweir opened 11 years ago

jweir commented 11 years ago

Should net-http-persistent not share connections for instances with different certificates?

I got burned by this using Mechanize. I know a solution is to name each instance, which works. But is that the following a principle of least surprise?

Related issue in Mechanize https://github.com/sparklemotion/mechanize/pull/324

drbrain commented 11 years ago

To implement this properly you would need to tell net-http-persistent which hostnames a certificate was usable for. I will think about what API to use.

konstantin-dzreev commented 10 years ago

+1