• Luca Boccassi's avatar
    Problem: new DRAFT monitor events returned even without --enable-draft · c0e2bc4e
    Luca Boccassi authored
    Solution: wrap the event triggering in the DRAFT ifdef as well as the
    defines. This ensures that the event are returned only if the
    library was built with DRAFTs enabled.
    
    Also update the test case to expect the new events since it uses
    the catch-all mask. Although the sequence of event is different and
    this might be considered as an API breakage, using the catch-all
    ZMQ_EVENT_ALL mask implies that, well, all events are monitored so
    it's normal that new ones will be added.
    Users that don't want this kind of behaviour to change can simply
    monitor only the event that they care about.
    c0e2bc4e
test_monitor.cpp 5.37 KB