mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-10 03:26:10 +00:00
LibTLS: Mark the underlying stream as nonblock
LibTLS does not want to be blocked.
This commit is contained in:
parent
e2f1da8cec
commit
bd5403adf1
Notes:
sideshowbarker
2024-07-17 20:19:08 +09:00
Author: https://github.com/alimpfard
Commit: bd5403adf1
Pull-request: https://github.com/SerenityOS/serenity/pull/13548
Reviewed-by: https://github.com/AtkinsSJ
1 changed files with 1 additions and 1 deletions
|
@ -95,7 +95,7 @@ ErrorOr<NonnullOwnPtr<TLSv12>> TLSv12::connect(String const& host, u16 port, Opt
|
|||
|
||||
ErrorOr<NonnullOwnPtr<TLSv12>> TLSv12::connect(String const& host, Core::Stream::Socket& underlying_stream, Options options)
|
||||
{
|
||||
StreamVariantType socket { &underlying_stream };
|
||||
TRY(underlying_stream.set_blocking(false));
|
||||
auto tls_socket = make<TLSv12>(&underlying_stream, move(options));
|
||||
tls_socket->set_sni(host);
|
||||
Core::EventLoop loop;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue