mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
LibProtocol: Retry reading if read errors with EAGAIN
This fixes an issue where fetch requests to HTTP(s) addresses would fail inside workers.
This commit is contained in:
parent
bb923983fc
commit
d0f88d4958
Notes:
sideshowbarker
2024-07-18 01:43:16 +09:00
Author: https://github.com/tcl3 Commit: https://github.com/SerenityOS/serenity/commit/d0f88d4958 Pull-request: https://github.com/SerenityOS/serenity/pull/24423 Reviewed-by: https://github.com/alimpfard
1 changed files with 1 additions and 1 deletions
|
@ -140,7 +140,7 @@ void Request::set_up_internal_stream_data(DataReceived on_data_available)
|
|||
|
||||
do {
|
||||
auto result = m_internal_stream_data->read_stream->read_some({ buffer, buffer_size });
|
||||
if (result.is_error() && (!result.error().is_errno() || (result.error().is_errno() && result.error().code() != EINTR)))
|
||||
if (result.is_error() && (!result.error().is_errno() || (result.error().is_errno() && (result.error().code() != EINTR && result.error().code() != EAGAIN))))
|
||||
break;
|
||||
if (result.is_error())
|
||||
continue;
|
||||
|
|
Loading…
Reference in a new issue