fix(shmem): refuse to send an empty Parts

- zeromq refuses an empty Parts with TransferCode::error; shmem sent a
  message with zero parts and returned 0, and the receiver got a
  Receive() with zero parts
- Refuse it in shmem too, with the same warning
- Enable PartsTransfer.EmptyPartsIsRefused
- Update the documentation pages that described the defect, and
  the source line links into the changed files

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Claude
2026-11-04 20:32:00 +00:00
committed by Dennis Klein
parent 50387fe5cc
commit 102cdaf40e
7 changed files with 14 additions and 16 deletions

View File

@@ -118,11 +118,8 @@ TEST_P(PartsTransfer, EmptyAndNonEmpty)
EXPECT_EQ(AsString(in[2]), "cde");
}
// Known defect: the transports do not agree on an empty Parts. zeromq refuses
// it (TransferCode::error). shmem sends a message with zero parts, returns 0,
// and the receiver gets a Receive() with zero parts. Enable this test when
// both transports have the same behavior.
TEST_P(PartsTransfer, DISABLED_EmptyPartsIsRefused)
// All transports refuse to send an empty Parts.
TEST_P(PartsTransfer, EmptyPartsIsRefused)
{
ProgOptions config;
test::Configure(config, tools::Uuid(), GetParam().expandedShmMetadata);