Commit d7c9486d authored by Petr Lapukhov's avatar Petr Lapukhov Committed by Facebook Github Bot

Always disable TTLS for server socket

Summary: We use proxy to wrap the server side of TTLS connection, thus we can safely disable TTLS option on server side. This helps with cases where people create server socket, then pass the FD to child, and that FD is a UNIX socket because of TTLS.

Reviewed By: djwatson

Differential Revision: D8096569

fbshipit-source-id: 657c3cee3a9df49cbb80fad771a897264d5277f4
parent 322caefa
......@@ -160,7 +160,9 @@ AsyncServerSocket::AsyncServerSocket(EventBase* eventBase)
backoffTimeout_(nullptr),
callbacks_(),
keepAliveEnabled_(true),
closeOnExec_(true) {}
closeOnExec_(true) {
disableTransparentTls();
}
void AsyncServerSocket::setShutdownSocketSet(
const std::weak_ptr<ShutdownSocketSet>& wNewSS) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment