Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

bump to 0.5.0

  • Loading branch information...
commit 3115ebfb1e2d77c7f3344ac762dc3a43504da9c3 1 parent 73bd083
Chuck Remes authored
View
48 History.txt
@@ -1,3 +1,51 @@
+== 0.5.0 / 2011-03-3
+ * Changed the constructor for the ZM::Reactor class. It now takes
+ an optional third hash argument. One of the keys that it uses
+ is :zeromq_context. This allows a user to create a master 0mq
+ context and share it with multiple reactors. The point of that is
+ to allow the use of the :inproc transport. That transport is
+ somewhat misnamed since it only allows "inprocess" communication
+ between sockets created by the same context. I needed :inproc to
+ work around a 0mq memory leak (still unfixed) and discovered this
+ issue.
+ A second key is :log_transport which is used by the logging
+ facility.
+ In the future, the first two arguments to ZM::Reactor will likely
+ be rolled into the hash argument. That will be a backwards-
+ incompatible change, so I'm hoping folks read these notes and
+ start preparing.
+ * Many fixes to ZM::Timers. Cancellation is more intelligent about
+ matching timers. Inspection of timers also provides better detail
+ about their contents. Lastly, expired timer removal is much clearer
+ in how it functions *and* it is faster by an order of magnitude.
+ (Note: Array#shift is *way faster* than Array#delete_at(0)).
+ * Timer expiration has changed. Originally, timers fired only when
+ the current time was *greater than* its firing time. Now timers
+ fire when the current time is *greater than or equal to* its firing
+ time.
+ * Modified how arguments are passed to the Forwarder and Queue
+ devices.
+ * Devices now default to a ZMQ::LINGER of 0 (drop messages
+ immediately upon socket close) and a ZMQ::HWM of 1 (only allow
+ 1 outstanding message between senders and receivers). These
+ parameters can be modified using the new argument hash.
+ * ZM::Address now supports the :inproc transport.
+ * Fixed a memory leak where a message was not released when an
+ internal recv operation returned EAGAIN. The code was leaking an
+ empty ZMQ::Message every time.
+ * Added a facility for logging. When a Reactor is instantiated a
+ user may pass in a transport string that indicates where the
+ reactor may *connect* and publish log messages. Part of the
+ contract is that this transport already has a listener bound
+ to it before the connection is attempted (e.g. for inproc
+ transports). If inproc is used, then the user also needs to
+ pass in the shared context via :zeromq_context.
+ * Fixed a bug in Socket#send_messages where EAGAIN was not always
+ properly detected and bubbled up to its caller.
+ * Refactored socket deletion. Hopefully it is easier to understand.
+
+== 0.4.1 / Unreleased
+
== 0.4.0 / 2010-12-16
* Replaced SortedSet in Timers with an Array and a custom routine
for finding the in-order index for an insert. The routine
View
6 spec/zmqmachine_spec.rb
@@ -1,6 +0,0 @@
-
-require File.join(File.dirname(__FILE__), %w[spec_helper])
-
-describe ZMQMachine do
-end
-
View
2  version.txt
@@ -1 +1 @@
-0.4.0
+0.5.0
View
4 zmqmachine.gemspec
@@ -2,7 +2,7 @@
Gem::Specification.new do |s|
s.name = %q{zmqmachine}
- s.version = "0.4.0"
+ s.version = "0.5.0"
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Chuck Remes"]
@@ -22,7 +22,7 @@ It is possible to extend the 0mq library to "poll" normal file
descriptors. This isn't on my roadmap but patches are accepted.}
s.email = %q{cremes@mac.com}
s.extra_rdoc_files = ["History.txt", "README.rdoc", "version.txt"]
- s.files = [".bnsignore", "History.txt", "README.rdoc", "Rakefile", "examples/fake_ftp.rb", "examples/one_handed_ping_pong.rb", "examples/ping_pong.rb", "examples/pub_sub.rb", "examples/pubsub_forwarder.rb", "examples/throttled_ping_pong.rb", "lib/zm/address.rb", "lib/zm/deferrable.rb", "lib/zm/devices.rb", "lib/zm/devices/forwarder.rb", "lib/zm/devices/queue.rb", "lib/zm/exceptions.rb", "lib/zm/message.rb", "lib/zm/reactor.rb", "lib/zm/sockets.rb", "lib/zm/sockets/base.rb", "lib/zm/sockets/pair.rb", "lib/zm/sockets/pub.rb", "lib/zm/sockets/rep.rb", "lib/zm/sockets/req.rb", "lib/zm/sockets/sub.rb", "lib/zm/sockets/xrep.rb", "lib/zm/sockets/xreq.rb", "lib/zm/timers.rb", "lib/zmqmachine.rb", "spec/spec_helper.rb", "spec/zmqmachine_spec.rb", "version.txt", "zmqmachine.gemspec"]
+ s.files = [".bnsignore", "History.txt", "README.rdoc", "Rakefile", "examples/fake_ftp.rb", "examples/one_handed_ping_pong.rb", "examples/ping_pong.rb", "examples/pub_sub.rb", "examples/pubsub_forwarder.rb", "examples/throttled_ping_pong.rb", "lib/zm/address.rb", "lib/zm/deferrable.rb", "lib/zm/devices.rb", "lib/zm/devices/forwarder.rb", "lib/zm/devices/queue.rb", "lib/zm/exceptions.rb", "lib/zm/log_client.rb", "lib/zm/message.rb", "lib/zm/reactor.rb", "lib/zm/sockets.rb", "lib/zm/sockets/base.rb", "lib/zm/sockets/pair.rb", "lib/zm/sockets/pub.rb", "lib/zm/sockets/rep.rb", "lib/zm/sockets/req.rb", "lib/zm/sockets/sub.rb", "lib/zm/sockets/xrep.rb", "lib/zm/sockets/xreq.rb", "lib/zm/timers.rb", "lib/zmqmachine.rb", "spec/spec_helper.rb", "spec/reactor_spec.rb", "version.txt", "zmqmachine.gemspec"]
s.homepage = %q{http://github.com/chuckremes/zmqmachine}
s.rdoc_options = ["--main", "README.rdoc"]
s.require_paths = ["lib"]
Please sign in to comment.
Something went wrong with that request. Please try again.