Closed dfhe2004 closed 1 year ago
I'll have to dive into this to take a look later. I would not be surprised if there were a bug in unsubscribe of regex though. That's not a heavily used part of the API. Will take a look at your change and get back to you! Thanks for the thorough submission! If only all questions could be as well asked as this one :)
This is on my radar. There's almost definitely a bug with unsubscribes. Working on diagnosing. Unsubscribing is just such a low priority for most people who use this library that it is largely a neglected part of zcm. If this is urgent, please let me know and I'll prioritize getting out a fix
I am confuse the logic of unsubscription, in some case, it cannot correct unsubscribe a normal channel. Here is a test code:
the output is :
ZCM-DEBUG: failed to find the subscription channel in unsubscribe() (../zcm/blocking.cpp @518)
when check the source code of
zcm/transport/transport_zmq_local.cpp
, the problem is here https://github.com/ZeroCM/zcm/blob/master/zcm/transport/transport_zmq_local.cpp#L355-L369I think the unsubscribe logic should be :
@jbendes test_code.zip