chuckremes / rzmq_brokers Goto Github PK
View Code? Open in Web Editor NEWA small toolkit for building 0mq-based brokers and protocols
A small toolkit for building 0mq-based brokers and protocols
after timing out on connecting to the broker, I get this message:
warn|20120121-13:28:00.865350 EST|RzmqBrokers::Worker::Handler, Worker [db-lookup] exceeded broker tries; reconnecting!
error|20120121-13:28:00.865778 EST|RzmqBrokers::Worker::Handler Worker could not cancel heartbeat timer! [delay [3000], periodical? [true], fire_time [2012-01-21 13:28:00 +1100] fire_delay_ms [-6]] proc [#Proc:0x0000010186df88@/Users/mwotton/projects/rzmq_brokers/lib/rzmq_brokers/worker/handler.rb:144]. Confirm that this object is only accessed by the reactor thread that created it. [worker-reactor] vs []
error|20120121-13:28:00.866139 EST|RzmqBrokers::Worker::Handler Worker could not cancel broker timer! [delay [9000], periodical? [true], fire_time [2012-01-21 13:28:09 +1100] fire_delay_ms [8999]] proc [#Proc:0x0000010186c9d0@/Users/mwotton/projects/rzmq_brokers/lib/rzmq_brokers/worker/handler.rb:160]. Confirm that this object is only accessed by the reactor thread that created it. [worker-reactor] vs []
and the process takes 99% cpu thereafter.
I'm using your db_lookup.rb sample code, just deleting the client and broker setup. Should the code be running inside the reactor?
./lib/rzmq_brokers/consensus/broker/service.rb: def send_client_reply_failure
./lib/rzmq_brokers/consensus/broker/service.rb: @handler.send_client_reply_failure(@return_address, @message)
./lib/rzmq_brokers/majordomo/broker/service.rb: @handler.send_client_reply_failure(@envelope_msgs, @reply)
./lib/rzmq_brokers/majordomo/broker/service.rb: @handler.send_client_reply_failure(@envelope_msgs, nil, frames)
./lib/rzmq_brokers/broker/handler.rb: def send_client_reply_failure(return_address, message, frames=[])
I added "fframe=[]" to the last line - it was being called with only two arguments. just a hack to stop it from dying, not sure what the real solution is.
I tried using the majordomo broker C code from the guide, and it complained about invalid messages. Does the ruby broker speak a different protocol? I noticed PROTOCOL_VERSION = "Mdp200" in message.rb, but couldn't find anything more about that protocol version.
any chance of pushing to rubygems as a legit gem that can be relied upon by other published gems?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.