Open ghost opened 8 years ago
When using the following code:
ctx = ZMQ::Context.new sub = ctx.socket(:SUB) sub.connect('tcp://127.0.0.1:5680') filter = [1, 1000].pack('CQ>') sub.subscribe(filter)
the filter string is "\x01\x00\x00\x00\x00\x00\x00\x03\xE8" and the call to subscribe raises an exception with the following message:
filter
"\x01\x00\x00\x00\x00\x00\x00\x03\xE8"
subscribe
string contains null byte
Using the exact same string with the C++ bindings works correctly, which suggests that the gem does something wrong.
When using the following code:
the
filter
string is"\x01\x00\x00\x00\x00\x00\x00\x03\xE8"
and the call tosubscribe
raises an exception with the following message:Using the exact same string with the C++ bindings works correctly, which suggests that the gem does something wrong.