[zeromq-dev] Newbie Bait Request: Debug "Warning" mechanism.

Oliver Smith oliver at kfs.org
Tue Aug 17 06:45:22 CEST 2010



Might it be a good idea to introduce a warnings system into the ZeroMQ debug-build flavor.

debugWarn(ZMQ_WARNING_33) ;    // ZeroMQ Caution #33: Application called recv() on a ZMQ_SUB socket without subscribing to any topics. (See zmq_setsockopt).

if ( settingSockOptZMQ_SERIALIZE_FUNCTION and context.numThreads<= 1 )
    debugWarn(ZMQ_WARNING_34) ;    // ZeroMQ Caution #34: Consider using more than one IO thread in applications which may have to serialize data to maintain throughput (see zmq_init)

etc.

Perhaps coupled with a sock-opt for disabling a particular warning - e.g. if your recv() is waiting for a term;)

- Oliver





More information about the zeromq-dev mailing list