andrewvc/em-zeromq — Issue #11: undefined method `errno' for ZMQ:Module
Author: chrisochs
Created: 2012-02-09 21:53:03+00:00
State: open

NoMethodError: undefined method `errno' for ZMQ:Module
getsockopt_with_raise at /home/marvel/.rvm/gems/jruby-1.6.5/gems/em-zeromq-0.2.2/lib/em-zeromq/rzmq_compat.rb:25

This seems kind of strange to me. the zeromq gem say's to check ZMQ.errno like you are doing, but errno is defined in ZMQ::Util and only included in specific zeromq classes, so it's not accessible as ZMQ.errno from anywhere, you have to specifically include ZMQ::Util within the namespace you want to call it from.

Looks like the quick fix is to just call ZMQ::Util.errno