Add flag to indicate a session resumption attempt
[folly.git] / folly / io / async / AsyncSSLSocket.cpp
index a7167989505714fa2a0087e65a864154a4f504c7..8175f8a5ac9157a3b31d8700abbe5abff206a82e 100644 (file)
@@ -757,6 +757,7 @@ void AsyncSSLSocket::sslConn(HandshakeCB* callback, uint64_t timeout,
   applyVerificationOptions(ssl_);
 
   if (sslSession_ != nullptr) {
+    sessionResumptionAttempted_ = true;
     SSL_set_session(ssl_, sslSession_);
     SSL_SESSION_free(sslSession_);
     sslSession_ = nullptr;