Details
Description
The java keep-alive cache relies on instance equivalence of the SSL socket factory. In many java versions, SSLContext#getSocketFactory always returns a new instance which completely breaks the cache. Clients flooding a service with lingering per-request connections that can lead to port exhaustion. The hadoop SSLFactory should cache the socket factory associated with the context.