zeromq / netmq

A 100% native C# implementation of ZeroMQ for .NET
Other
2.97k stars 744 forks source link

Publisher sending duplicate messages #1106

Open abust005 opened 1 month ago

abust005 commented 1 month ago

Environment

NetMQ Version:    4.0.1.13
Operating System: Windows 10
.NET Version:     Framework 4.8

Expected behaviour

Publisher socket will only send one, multi-frame message when using either SendMoreFrame or SendMultipartMessage

Actual behaviour

Messages are being duplicated. Instead of only sending one multi-frame message, it sends two identical multi-frame messages.

Steps to reproduce the behaviour

Set up Publisher socket that connects to one or more Subscribers (have tested with C++ and Python subscribers). Set up simple message receive loop for Subscribers. Send multi-frame message using either SendMoreFrame or SendMultipartMessage schemes. Print out received messages in Subscriber loop. Two identical messages should appear.