Behavior of message_t::copy is unclear
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 68/100
Research direction
Start by locating the message_t::copy declaration and its documentation, then inspect how it delegates to zmq_msg_copy and how callers use the parameter. Confirm that this is only a source-parameter naming clarification, update the declaration and any related documentation or tests, and verify the existing copy behavior remains unchanged.
Written by the indexing model from the issue text.
Description
message_t::copy is declared as
void copy(message_t &msg_)
- it is unclear which is the source and which is the destination.
(looking into the documentation,thisis the destination, andmsg_is the source. - as I understand,
msg_isn't const, because the underlyingzmq_msg_copymay need to modify the source's reference count.
If these observations are correct, I would suggest to rename the parameter to
void copy(message_t &source)
(can provide pull request, but I'm not sure if I'm missing some detail...)
- Dominant language
- C++
- Stars
- 2.3k
- Forks
- 798
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from zeromq/cppzmq
-
Difficulty 2/5 1-3 hours Newbie friendliness 48/100
-
Difficulty 1/5 Under an hour Newbie friendliness 15/100
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
-
Difficulty 3/5 1-2 days Newbie friendliness 38/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
AXERA-TECH/ax-llm#77 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
bug-unconfirmed
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
NVIDIA/cuda-samples#453 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
infiniflow/infinity#3502 ·