zeromq / netmq

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

Is there no problem if we change the maximum number of sockets? #1039

Open kimjooeun opened 1 year ago

kimjooeun commented 1 year ago

Environment

NetMQ Version:    4.0.1.8
Operating System:  Microsoft Windows 10 Pro
.NET Version:    net 6.0

Is there no problem if we change the maximum number of sockets? Why did NetMQ set the maximum number of sockets to 1024?

We tested that changing the variable m_slotCount to 10 and creating a dealer socket creates one dealer socket, changing to 16 creates one dealer socket, and changing to 17 creates two dealer sockets.

How do I change the m_SlotCount value to create up to 10000 dealer sockets?

For your information, the file that modified the m_slotCount value is NetMQ/Core/Ctx.cs.