[zeromq-dev] Ruby bindings - setsockopt problems

Wolfgang Barth wob at swobspace.de
Sat Apr 10 19:57:11 CEST 2010


On Sat, Apr 10, 2010 at 04:53:37PM +0200, Martin Sustrik wrote:

> Fixed. Try the current version of rbzmq.

Thank you very much for the very very quick fix :-)

BTW, I tried ZMQ_SWAP for buffering on disk. 

s.setsockopt(ZMQ::HWM, 3)
s.setsockopt(ZMQ::LWM, 1)
s.setsockopt(ZMQ::SWAP, 1024000)

With ZMQ_PUB/SUB I loose information,  with ZMQ_P2P the sender waits after
the third call, with socket.send(msg, ZMQ_NOBLOCK) I get an unhandled
exception:

  ./prompt.rb:35: unhandled exception

So, what ist ZMQ_SWAP for? Did I have to set a swap file?

Wolfgang
-- 
<wob (at) swobspace de> * http://www.swobspace.de



More information about the zeromq-dev mailing list