#include <boost/cast.hpp>
#include <fcntl.h>
#include <folly/ScopeGuard.h>
-#include <folly/wangle/acceptor/ManagedConnection.h>
#include <folly/io/async/EventBase.h>
#include <fstream>
#include <sys/socket.h>
#include <sys/types.h>
#include <folly/io/async/AsyncSSLSocket.h>
#include <folly/io/async/AsyncSocket.h>
-#include <folly/io/async/EventBase.h>
#include <unistd.h>
using folly::wangle::ConnectionManager;
tinfo.sslSetupTime = std::chrono::duration_cast<std::chrono::milliseconds>(std::chrono::steady_clock::now() - acceptTime_);
tinfo.sslSetupBytesRead = sock->getRawBytesReceived();
tinfo.sslSetupBytesWritten = sock->getRawBytesWritten();
- tinfo.sslServerName = sock->getSSLServerName();
- tinfo.sslCipher = sock->getNegotiatedCipherName();
+ tinfo.sslServerName = sock->getSSLServerName() ?
+ std::make_shared<std::string>(sock->getSSLServerName()) : nullptr;
+ tinfo.sslCipher = sock->getNegotiatedCipherName() ?
+ std::make_shared<std::string>(sock->getNegotiatedCipherName()) : nullptr;
tinfo.sslVersion = sock->getSSLVersion();
tinfo.sslCertSize = sock->getSSLCertSize();
tinfo.sslResume = SSLUtil::getResumeState(sock);
* The name of the SSL ciphersuite used by the transaction's
* transport. Returns null if the transport is not SSL.
*/
- const char* sslCipher{nullptr};
+ std::shared_ptr<std::string> sslCipher{nullptr};
/*
* The SSL server name used by the transaction's
* transport. Returns null if the transport is not SSL.
*/
- const char* sslServerName{nullptr};
+ std::shared_ptr<std::string> sslServerName{nullptr};
/*
* list of ciphers sent by the client