Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e9c7ab5f authored by Steven Moreland's avatar Steven Moreland Committed by Android (Google) Code Review
Browse files

Revert "RPC Binder: patch sizes to 4096"

This reverts commit 51989f79.

Reason for revert: too slow, has alternative

Bug: 419364025
Bug: 423127919
Change-Id: If9881e14163252a32b90d6897282a3fa7bd6d37a
parent 51989f79
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -61,8 +61,8 @@ status_t interruptableReadOrWrite(
    }

    // size to break up message - this is not reset for this read/write operation.
    constexpr size_t kChunkMax = 4096;
    const size_t kChunkMin = 2048; // typical allocated granularity for sockets
    constexpr size_t kChunkMax = 65536;
    const size_t kChunkMin = getpagesize(); // typical allocated granularity for sockets
    size_t chunkSize = kChunkMax;

    // b/419364025 - we have confirmed vhost-vsock ENOMEM for non-blocking sockets,