mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-03 09:48:47 +00:00
Revert "LibIPC+LibWeb: Delete LargeMessageWrapper workaround in IPC…
…connection"
This reverts commit 2d625f5c23
.
This commit is contained in:
parent
3fcdbef327
commit
1ee56d34e7
Notes:
github-actions[bot]
2025-04-10 15:25:37 +00:00
Author: https://github.com/tcl3
Commit: 1ee56d34e7
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4307
11 changed files with 177 additions and 23 deletions
|
@ -288,9 +288,13 @@ 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&& raw_message) {
|
||||
FixedMemoryStream stream { raw_message.bytes.span(), FixedMemoryStream::Mode::ReadOnly };
|
||||
IPC::Decoder decoder { stream, raw_message.fds };
|
||||
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 serialized_transfer_record = MUST(decoder.decode<SerializedTransferRecord>());
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue