Add flag to indicate a session resumption attempt
[folly.git] / folly / io / async / AsyncSSLSocket.h
index 47ad97b08160279e9c9419eaa9a97a2a164688a0..2e09935c0de5f5048989b8cfe06df6b3ba92b85d 100644 (file)
@@ -741,6 +741,10 @@ class AsyncSSLSocket : public virtual AsyncSocket {
     return certCacheHit_;
   }
 
+  bool sessionResumptionAttempted() const {
+    return sessionResumptionAttempted_;
+  }
+
  private:
 
   void init();
@@ -895,6 +899,7 @@ class AsyncSSLSocket : public virtual AsyncSocket {
   std::chrono::steady_clock::time_point handshakeStartTime_;
   std::chrono::steady_clock::time_point handshakeEndTime_;
   uint64_t handshakeConnectTimeout_{0};
+  bool sessionResumptionAttempted_{false};
 };
 
 } // namespace