twitter/finagle — pull request #51 by jluxenberg (2011-12-01 01:37:33+00:00)
Title: SSLEngine instances must not be reused between connections

Previously, an instance of SSLEngine was created in the ClientBuilder and then used for all subsequent service calls. According to the documentation for SSLEngine (see http://docs.oracle.com/javase/6/docs/api/javax/net/ssl/SSLEngine.html; "Once an engine is closed, it is not reusable: a new SSLEngine must be created") it may not be reused.

See here for a test case (we should come up with a test case that doesn't involve the Internet):
https://gist.github.com/1410735