You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please use this template for reporting suspected bugs or requests for help.
Issue description
I am using clrzmq4 to call libzmq. When the topic length of sub exceeds 15kb, xpub crashes when calling zmq_msg_recv.
Environment
libzmq version (commit hash if unreleased): 4.3.5
OS: Windows
Minimal test code / Steps to reproduce the issue
var xpub = new ZSocket(ZSocketType.XPUB);
xpub.Bind("tcp://*:6666");
Task.Run(() => {
var msg = xpub.ReceiveMessage(); //Calling this code will result in a crash. When the topic length of sub exceeds 15kb
});
var subSocket = new ZSocket(ZSocketType.SUB);
subSocket.Connect("tcp://localhost:6666");
byte[] dataArray = new byte[1024 * 16];
for (int i = 0; i < dataArray.Length; i++)
{
dataArray[i] = 111;
}
subSocket.Subscribe(dataArray);
What's the actual result? (include assertion message & call stack if applicable)
When the topic length of sub exceeds 15kb, xpub crashes when calling zmq_msg_recv.
What's the expected result?
The expected result is the normal completion of subscribing to data.
The text was updated successfully, but these errors were encountered:
Please use this template for reporting suspected bugs or requests for help.
Issue description
I am using clrzmq4 to call libzmq. When the topic length of sub exceeds 15kb, xpub crashes when calling zmq_msg_recv.
Environment
Minimal test code / Steps to reproduce the issue
var xpub = new ZSocket(ZSocketType.XPUB);
xpub.Bind("tcp://*:6666");
Task.Run(() => {
var msg = xpub.ReceiveMessage(); //Calling this code will result in a crash. When the topic length of sub exceeds 15kb
});
var subSocket = new ZSocket(ZSocketType.SUB);
subSocket.Connect("tcp://localhost:6666");
byte[] dataArray = new byte[1024 * 16];
for (int i = 0; i < dataArray.Length; i++)
{
dataArray[i] = 111;
}
subSocket.Subscribe(dataArray);
What's the actual result? (include assertion message & call stack if applicable)
When the topic length of sub exceeds 15kb, xpub crashes when calling zmq_msg_recv.
What's the expected result?
The expected result is the normal completion of subscribing to data.
The text was updated successfully, but these errors were encountered: