HomeClusterLabs Projects

Refactor: libcrmcommon: pcmk__ipc_prepare_iov should take an offset.
ad98cde9ca4bUnpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent 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 pcmk_rc_ipc_more, 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
rPef30a9bce471: API: libcrmcommon: Introduce the pcmk_rc_ipc_more error code.
Branches
Unknown
Tags
Unknown

Event Timeline