Closed gillima closed 9 years ago
I wouldn't expect to have ctx.MaxSockets == 1024
...
And I don't see the hard difference, IO_THREADS == 1
and MAX_SOCKETS == 2
The problem is that C# enums start with 0, so IO_THREADS == 0. When you set zcontext.MaxSockets = 5, it will set IO_THREADS = 5 on the underlaying socket.
OH, I'm going to change that ;)
This is changed now.
The definition of the ZContextOption enum is different from the values in libzmq.
To reproduce use following code (where as 1024 is the default value for max sockets):