Make SSLContext's exit() handling more graceful
authorSubodh Iyengar <subodh@fb.com>
Tue, 25 Nov 2014 21:07:16 +0000 (13:07 -0800)
committerDave Watson <davejwatson@fb.com>
Thu, 11 Dec 2014 15:58:48 +0000 (07:58 -0800)
commit607e323f3791f3701e61b47e74280deb9aa26a22
tree2c457bd02280d491218aa1d59fae64b0b24ede8c
parent9daa3dc2ba9d0ddab2ddccc82dc5cc0919fa1f79
Make SSLContext's exit() handling more graceful

Summary:
Some platforms that SSLContext run on call exit() despite best practices.
This cause the static structures to be destructed and cause race conditions
and crashes.

This new's the static structures so that they won't be destructed on exit()

Test Plan: Unit tests

Reviewed By: seanc@fb.com

Subscribers: trunkagent, ssl-diffs@, seanc, njormrod, folly-diffs@

FB internal diff: D1702186

Tasks: 5572637

Signature: t1:1702186:1416941649:c5bdfd8cc604fc3618f51bdb8b910b5b2cf350ad
folly/io/async/SSLContext.cpp