Skip Menu |

This queue is for tickets about the Net--RabbitMQ CPAN distribution.

Report information
The Basics
Id: 101574
Status: resolved
Priority: 0/
Queue: Net--RabbitMQ

People
Owner: Nobody in particular
Requestors: SREZIC [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: 0.2.7
Fixed in: 0.2.8



Subject: boolean header values not handled
An amqp message which contains a boolean header value causes a Net::RabbitMQ-using consumer to die with a "Bad frame read" error. Looking at the source code it seems that there's no code handling the 't' type.
On 2015-01-16 11:13:25, SREZIC wrote: Show quoted text
> An amqp message which contains a boolean header value causes a > Net::RabbitMQ-using consumer to die with a "Bad frame read" error. > Looking at the source code it seems that there's no code handling the > 't' type.
A possible patch is at http://cpan.cpantesters.org/authors/id/S/SR/SREZIC/patches/Net-RabbitMQ-0.2.7-RT101574.patch As it seems that the bundled amqp library does not have support for decoding boolean values, I had to hack also some support into amqp_table.c. No attempt for _creating_ boolean header values was made in this patch.
On 2015-01-16 11:21:03, SREZIC wrote: Show quoted text
> On 2015-01-16 11:13:25, SREZIC wrote:
> > An amqp message which contains a boolean header value causes a > > Net::RabbitMQ-using consumer to die with a "Bad frame read" error. > > Looking at the source code it seems that there's no code handling the > > 't' type.
> > A possible patch is at > http://cpan.cpantesters.org/authors/id/S/SR/SREZIC/patches/Net- > RabbitMQ-0.2.7-RT101574.patch > As it seems that the bundled amqp library does not have support for > decoding boolean values, I had to hack also some support into > amqp_table.c. > > No attempt for _creating_ boolean header values was made in this > patch.