HomeClusterLabs Projects

Refactor: libcrmcommon: pcmk__ipc_prepare_iov should take an offset.
56239a2c41e4Unpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.
This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or ref.

Description

Refactor: libcrmcommon: pcmk__ipc_prepare_iov should take an offset.

The function now only prepares as much for one I/O vector as will fit in
a single buffer.

The idea is that you can call the function repeatedly in a loop,
preparing and transmitting individual chunks of a single XML message.
As long as pcmk__ipc_prepare_iov returns EAGAIN, you know there's more
that needs to be prepared. Keep a running count of the bytes it
prepared and pass that in for offset.

Note that clients are not doing this yet, so very large IPC messages are
still going to fail.

Details

Provenance
clumensAuthored on Feb 19 2025, 12:33 PM
Parents
rPd9710d3d21e7: Refactor: libcrmcommon: pcmk__ipc_prepare_iov takes a string...
Branches
Unknown
Tags
Unknown

Event Timeline