Ignore setSSLLockTypes() calls after SSLContext is initialized. v2017.04.24.00
authorNeel Goyal <ngoyal@fb.com>
Sat, 22 Apr 2017 16:18:55 +0000 (09:18 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Sat, 22 Apr 2017 16:25:36 +0000 (09:25 -0700)
commit2d466553db47cf7c3d7d98837466d3b3d6874bae
treeae345139e014882bb547c7fae6b73d2eb3f2554a
parent3bdf6ef10a381938e3919f2f66f47b1806daa9b0
Ignore setSSLLockTypes() calls after SSLContext is initialized.

Summary: We set the actual locks on initialization, so attempting to change locks after had no affect, other than making isSSLLockDisabled() report incorrect information.

Reviewed By: yfeldblum

Differential Revision: D4935475

fbshipit-source-id: 7b80cd530801c925ade769163579b86b1a8f0027
folly/io/async/SSLContext.cpp
folly/io/async/test/AsyncSSLSocketTest2.cpp