mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
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.
This commit is contained in:
parent
866244eec5
commit
f4eab69785
Notes:
sideshowbarker
2024-07-18 11:15:42 +09:00
Author: https://github.com/alimpfard Commit: https://github.com/SerenityOS/serenity/commit/f4eab697859 Pull-request: https://github.com/SerenityOS/serenity/pull/8322
1 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue