فهرست منبع

LibHTTP: Finish the request up on TLS connection finish

...unless it has already been done.
Otherwise we'd be spinning in RequestServer waiting for more read
events.
Ali Mohammad Pur 4 سال پیش
والد
کامیت
f4eab69785
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      Userland/Libraries/LibHTTP/HttpsJob.cpp

+ 4 - 0
Userland/Libraries/LibHTTP/HttpsJob.cpp

@@ -38,6 +38,10 @@ void HttpsJob::start()
             });
         }
     };
+    m_socket->on_tls_finished = [this] {
+        if (!m_has_scheduled_finish)
+            finish_up();
+    };
     m_socket->on_tls_certificate_request = [this](auto&) {
         if (on_certificate_requested)
             on_certificate_requested(*this);