Open jgasperlin opened 2 years ago
Hello, I have encountered the same problem, have you find the cause or has it been solved?
Hello, I have encountered the same problem, have you find the cause or has it been solved?
hello,I‘m handling the same problem ,have you has it been solved?
Environment
Expected behavior
Monitoring of socket connection
Actual behavior
Crash during unit testing, connecting and disconnection multiple clients.
Steps to reproduce the behavior
Use
RouterSocket
and assignnew NetMQMonitor(Socket, monitorEndpoint, SocketEvents.Disconnected | SocketEvents.Accepted)
. Monitor accepted connection with on event_monitor.Accepted
.When exception is throw on line https://github.com/zeromq/netmq/blob/0b58c232799ce578868524814ce7a59ed13a0a37/src/NetMQ/Monitoring/NetMQMonitor.cs#L159 it crashes application.
I tested with some shorter/longer event handlers, but did not make difference. When I added conditional breakpoint on https://github.com/zeromq/netmq/blob/0b58c232799ce578868524814ce7a59ed13a0a37/src/NetMQ/Monitoring/NetMQMonitor.cs#L159 it never hit again. (Most likely do to slower performance) Am assuming problem is on not yet initializes socket while event is already being propagated.