<div dir="ltr">Dear Sir,<br><br>I am trying to implement &quot;amqp_basic_reject&quot; in my amqp_listen.c example.<br><br>My requirement is I need to reject the message if it is taking more then 10 sec from &quot;amqp_sendstring.c&quot;. I design &quot;amqp_sendstring.c&quot; 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<br>
<br>It took 5 seconds to receive the data from client<br>Frame type 1, channel 1<br>Method AMQP_BASIC_DELIVER_METHOD<br>Delivery 1, exchange amq.direct routingkey test<br>Got the frame in right time ...!<br>Content-type: text/plain<br>
----<br>00000000: 43 48 49 4C 44 20 50 52 : 4F 43 45 53 53���������� CHILD PROCESS<br>0000000D:<br><br><br>But I second case:<br><br>It took 11 seconds to receive the data from client<br>Frame type 1, channel 1<br>Method AMQP_BASIC_DELIVER_METHOD<br>
Delivery 2, exchange amq.direct routingkey test<br>reject executed...!<br>Result 0<br>It took 0 seconds to receive the data from client<br>Frame type 2, channel 1<br>Method AMQP_BASIC_DELIVER_METHOD<br>Segmentation fault (core dumped)<br>
<br>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???<br><br>Please help !!<br><br clear="all"><div>Thank &amp; Regards,<br>
Rohit<br><br></div>
</div>