Open WojakGra opened 3 months ago
I'm Experiencing the same issue in old codebase after switching from ZeroMQ nuget to NetMQ. Issue happens from time to time. Is there option to catch these exceptions just to avoid crash?
I tried to implement exceptions but decided to get diffrent approach. I made a class for queue that sends the message with timer inside in Task.
In this way I got rid of the problem, where there was a possibility that two messages wanted to send at the same time and an error was shown
Environment
Explanation
I have tasks with a loop, where in this loop I use the function 'NetMQ_SendFrame', which sends information by converting object to JSON string. The server crashes with error down below
Code
Server
Client
Model of message
Error