[rabbitmq-discuss] Problem at reject!!

Alan Antonuk alan.antonuk at gmail.com
Wed Jul 10 17:40:03 BST 2013


Have you tried running it under a debugger to see where its segfaulting?


On Wed, Jul 10, 2013 at 2:14 AM, Rohit Patle <rohitpatle86 at gmail.com> wrote:

> 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
>
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20130710/d7ffa36b/attachment.htm>


More information about the rabbitmq-discuss mailing list