Github user CMoH commented on the pull request:
https://github.com/apache/incubator-brooklyn/pull/997#issuecomment-154560691
It seems that we are both right. By adding an `invocationCount` parameter
to the test under question I've found that "sometimes" we get
`SocketException`, and sometimes `SSLHandshakeException`. I've tracked the
problem down to a (theoretical) flaw in the way
`org.apache.http.conn.ssl.SSLSocketFactory` handles SSL socket connections.
However, it may be that this race is visible only when both ends of the socket
are on the same host, or (as in our test case) within the same process.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---