twitter/finagle — pull request #73 by tootedom (2012-03-09 07:39:18+00:00)
Title: Making JSSE.client only create default SSLContext once

Currently when tls(hostname) is called the SSLContext for the default jsse
truststore (cacerts) is created on a per request basis. This seems like overhead,
as a new SSLContext means that cacerts is reread; and a SecureRandom created
for each ssl (https) call.

Therefore, I've made a change; so that only the first call to JSSE.client()
creates the SSLContext, all subsequent calls just create the SSLEngine from
that precreated default SSLContext.