Neopallium/lua-zmq — Issue #21: socket:recv() does not work
Author: mkottman
Created: 2011-12-24 01:46:10+00:00
State: open

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 :)