mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 18:17:22 +02:00
LibIPC+LibWeb: Delete LargeMessageWrapper workaround in IPC connection
Bring back 2d625f5c23
This commit is contained in:
committed by
Alexander Kalenik
parent
681333d329
commit
b53694b4c0
Notes:
github-actions[bot]
2025-04-10 21:41:01 +00:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/LadybirdBrowser/ladybird/commit/b53694b4c09 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4313 Reviewed-by: https://github.com/ADKaster
@@ -288,13 +288,9 @@ void MessagePort::post_port_message(SerializedTransferRecord serialize_with_tran
|
||||
|
||||
void MessagePort::read_from_transport()
|
||||
{
|
||||
auto schedule_shutdown = m_transport->read_as_many_messages_as_possible_without_blocking([this](auto&& unparsed_message) {
|
||||
auto& bytes = unparsed_message.bytes;
|
||||
IPC::UnprocessedFileDescriptors unprocessed_fds;
|
||||
unprocessed_fds.return_fds_to_front_of_queue(move(unparsed_message.fds));
|
||||
|
||||
FixedMemoryStream stream { bytes.span(), FixedMemoryStream::Mode::ReadOnly };
|
||||
IPC::Decoder decoder { stream, unprocessed_fds };
|
||||
auto schedule_shutdown = m_transport->read_as_many_messages_as_possible_without_blocking([this](auto&& raw_message) {
|
||||
FixedMemoryStream stream { raw_message.bytes.span(), FixedMemoryStream::Mode::ReadOnly };
|
||||
IPC::Decoder decoder { stream, raw_message.fds };
|
||||
|
||||
auto serialized_transfer_record = MUST(decoder.decode<SerializedTransferRecord>());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user