ruby-amqp/amqp — Issue #115: Exchange#after_publish not called when using publisher confirms
Author: grantr
Created: 2012-01-18 03:57:08+00:00
State: open

(This might belong in amq-client issues)

I'm testing publisher confirms but the after_publish callback does not seem to be called as expected. This causes Channel#publisher_index to never be incremented, and makes it impossible to implement a custom confirm callback.

This can be demonstrated by adding a puts after the publish in publisher_confirmations_with_transient_messages.rb

EventMachine.add_timer(0.5) do
10.times do |i|
puts "Publishing message ##{i + 1}"
x.publish("Message ##{i + 1}")
puts channel.publisher_index
end
end