docs(shmem): document that sender and receiver must use the same kind of type

- shmem uses one metadata format for a single message and another for
  a multipart message; Receive(Parts) of a single send, or
  Receive(MessagePtr) of a multipart send, gives wrong metadata or a
  crash
- Add a sender/receiver table to the messages page of the
  documentation and a note to Channel::Receive()
- Update the source line links into Channel.h
- Keep PartsTransfer.SingleSendMultipartReceive disabled: a fix
  changes the shmem wire format

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Claude
2026-11-04 21:13:26 +00:00
committed by Dennis Klein
parent 102cdaf40e
commit 25f44828d7
10 changed files with 47 additions and 28 deletions

View File

@@ -137,10 +137,11 @@ TEST_P(PartsTransfer, EmptyPartsIsRefused)
EXPECT_EQ(pull.Receive(in, 100), static_cast<int64_t>(TransferCode::timeout));
}
// Known defect: shmem uses different metadata formats for a single message
// and for Parts. Receive(Parts) of a message sent with Send(MessagePtr) reads
// the size of the message as the number of parts, and reads metadata past the
// received data. zeromq receives it as one part.
// Known limitation (documented in docs/Transport.md and Channel::Receive()):
// shmem uses different metadata formats for a single message and for Parts.
// Receive(Parts) of a message sent with Send(MessagePtr) reads the size of the
// message as the number of parts, and reads metadata past the received data.
// zeromq receives it as one part. A fix changes the shmem wire format.
TEST_P(PartsTransfer, DISABLED_SingleSendMultipartReceive)
{
ProgOptions config;