[rabbitmq-discuss] Problem at reject!!

Rohit Patle rohitpatle86 at gmail.com
Wed Jul 10 10:14:21 BST 2013


Dear Sir,

I am trying to implement "amqp_basic_reject" in my amqp_listen.c example.

My requirement is I need to reject the message if it is taking more then 10
sec from "amqp_sendstring.c". I design "amqp_sendstring.c" in a way that,
it sending two msg to listner one at less then 10 sec and anther one is
more then 10 sec. first msg I am received properly as

It took 5 seconds to receive the data from client
Frame type 1, channel 1
Method AMQP_BASIC_DELIVER_METHOD
Delivery 1, exchange amq.direct routingkey test
Got the frame in right time ...!
Content-type: text/plain
----
00000000: 43 48 49 4C 44 20 50 52 : 4F 43 45 53 53           CHILD PROCESS
0000000D:


But I second case:

It took 11 seconds to receive the data from client
Frame type 1, channel 1
Method AMQP_BASIC_DELIVER_METHOD
Delivery 2, exchange amq.direct routingkey test
reject executed...!
Result 0
It took 0 seconds to receive the data from client
Frame type 2, channel 1
Method AMQP_BASIC_DELIVER_METHOD
Segmentation fault (core dumped)

Here in second case the Frame type is changing to 2. and segmentation fault
is occurring. I am unable to figure out how the Frame type 2 is coming???

Please help !!

Thank & Regards,
Rohit
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130710/f14fda98/attachment.htm>


More information about the rabbitmq-discuss mailing list