Skip to content

Commit 1af23fa

Browse files
committed
azmq/detail/context_ops.hpp: Assign ZMQ_MAX_SOCKETS to max_sockets
Without this patch, max_sockets references ZMQ_MAXMSGSIZE which isn't quite right ;) Probably a typo - lets just quickly fix it! I've tested this locally by subscribing to >1000 topics to avoid the proverbial "Too many open files" and already ensuring that my 'ulimit -n <>' soft & hard limits allow for the extra sockets.
1 parent 162ae5c commit 1af23fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

azmq/detail/context_ops.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ namespace detail {
2828
using lock_type = boost::lock_guard<boost::mutex>;
2929

3030
using io_threads = opt::integer<ZMQ_IO_THREADS>;
31-
using max_sockets = opt::integer<ZMQ_MAXMSGSIZE>;
31+
using max_sockets = opt::integer<ZMQ_MAX_SOCKETS>;
3232
using ipv6 = opt::boolean<ZMQ_IPV6>;
3333

3434
static context_type ctx_new() {

0 commit comments

Comments
 (0)