Closed exzachtly1 closed 9 years ago
most of the stuff already solved, try to compile from https://github.com/somdoron/netmq.
Hopefully in the weekend I will release a new RC version.
Thank you somdoron, I appreciate the reply! We have temporarily switched to HTTP based messaging but would like to continue using NetMQ. I'll check the RC version next Monday and see how it goes.
From what I have shown you, do you see any misuse in our code? Are we handling connection state correctly? It seems like it happens when many connections are opening / closing in a short time frame. My thought was that maybe the original error was happening because we were mis-handling the connections. Or is this simply a known bug?
it seems fine. the exception not being serializable was fixed some time ago, I think the argument exception was fixed as well.
@exzachtly1 netmq v3.3.0.12 RC1 was released to nuget:https://www.nuget.org/packages/NetMQ/3.3.0.12-rc1.
Let me know if you still have issues
NetMQException
and its subclasses.Well, shoul this issue be closed?
Hello, We are using NetMQ (latest nuget package v3.3.0.11) in an ASP.NET WebAPI application to send messages using the Push/Pull pattern. We have been running this way with success for some time, but over the past week or so have noticed one of our environments beginning to have application crashes on a fairly regular interval. When these exceptions occur the application pool crashes and generates a dump file.
Exceptions are originating from the NetMQ assembly. The first (and more common) one shows in the windows event log as:
And the second one I have seen is:
I have tried to catch these exceptions in the calling code, but the application crash occurs before they can be caught. I have yet to be able to nail down a reliable way to reproduce this bug, and it is only happening in one environment. This environment sends messages with greater frequency so it is opening/closing connections on a much more regular interval. I suspect that has something to do with it.
Here is the code we use to connect and send messages (reduced to just the important bits):
Important notes about usage - in generic terms, clients are invoking a process via the WebAPI and the process executes in steps. Each step sends a message. We have a logger class that wraps all of ZMQ connection state and messaging code. It works as follows:
I'm not sure if this is a legitimate bug or if we are mis-using the library, but as I cannot get the inner exception from NetMQ (due to the serialization exception), then it is hard for me to trace where it is happening in order to troubleshoot.
Any thoughts are appreciated! Thanks!