zeromq / netmq

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

Why NetMq Terminating the Application when the default max socket count of NetMqcontext reached? #945

Open baranetharen opened 4 years ago

baranetharen commented 4 years ago

Environment

NetMQ Version:    
Operating System: 
.NET Version:     

Expected behaviour

Actual behaviour

I am working on a pub/sub socket , if the publisher is not responding i am disposing the sub socket and recreating the new sub socket using Netmqcontext using createSocket methord , if i run the app for few hours the Application gets terminated , i found out that m_socket count in netMQContext keep inceasing on creation of the new socket and when it reaches it's max value it is terminating the application , Is there any way i can properly dispose and receate the new socket ?

The Error Which i get is NetMQ.NetMQException :`ctx.CreateSocket(sub),max no of sockets 1024 reached

Steps to reproduce the behaviour

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had activity for 365 days. It will be closed if no further activity occurs within 56 days. Thank you for your contributions.