Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Revision history for Perl extension AnyEvent::RabbitMQ

- Add "no_ack" flag to "get" method. (Julio Polo)
- Prevent channelMax from overflowing.
https://rt.cpan.org/Ticket/Display.html?id=97716 (Carl Hörberg)
- Merge in documentation patch from
Expand Down
1 change: 1 addition & 0 deletions dist.ini
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ x_contributors = Ruslan Zakirov <ruz@bestpractical.com>
x_contributors = Masahito Ikuta <cooldaemon@gmail.com>
x_contributors = Rod Taylor <rod.taylor@gmail.com>
x_contributors = Carl Hörberg <carl@cloudamqp.com>
x_contributors = Julio Polo <julio@hawaii.edu>

[InstallGuide]
[CPANFile]
Expand Down
8 changes: 7 additions & 1 deletion lib/AnyEvent/RabbitMQ/Channel.pm
Original file line number Diff line number Diff line change
Expand Up @@ -617,12 +617,14 @@ sub get {
my $self = shift;
my ($cb, $failure_cb, %args) = $self->_delete_cbs(@_);

my $no_ack = delete $args{no_ack} // 1;

return $self if !$self->_check_open($failure_cb);

$self->{connection}->_push_write_and_read(
'Basic::Get',
{
no_ack => 1,
no_ack => $no_ack,
%args, # queue
ticket => 0,
},
Expand Down Expand Up @@ -1385,6 +1387,10 @@ a notification that there was nothing to collect from the queue.

This callback will be called if an error is signalled on this channel.

=item no_ack

0 or 1, default 1

=back

=head2 ack
Expand Down