Fix SSL server sockets
Summary:
It looks like SSL servers were half-implemented. Neither stream_socket_server nor stream_socket_accept would do the right thing for SSL servers, but the SSLSocket class already had a bunch of code for dealing with servers. This change allows for a server to accept SSL connections and adds tests for it.
Closes https://github.com/facebook/hhvm/pull/6382
Reviewed By: sgolemon, JoelMarcey
Differential Revision:
D2554291
Pulled By: sgolemon
fb-gh-sync-id:
d09c6d24d22d0e63f115bb485baa446fafbb0532