The method socket:recv() does not work - it just returns false instead of the string I send. Consider this example:
local zmq = require 'zmq'
local ctx = zmq.init(1)
local r = assert(ctx:socket(zmq.PAIR))
assert(r:bind('inproc://test'))
local s = assert(ctx:socket(zmq.PAIR))
assert(s:connect('inproc://test'))
assert(s:send("hello"))
print(r:recv()) -- expecting "hello", got: false
I use lua-zmq from git HEAD and ZMQ 3.1.1. Note that the send_msg and recv_msg do work as expected, but it cost me a lot of time to find it out :)
The method
socket:recv()
does not work - it just returns false instead of the string I send. Consider this example:I use lua-zmq from git HEAD and ZMQ 3.1.1. Note that the
send_msg
andrecv_msg
do work as expected, but it cost me a lot of time to find it out :)