mirror of
https://github.com/FairRootGroup/FairMQ.git
synced 2026-11-25 13:11:36 +00:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user