The rabbitmq-c client does not support AMQP heartbeats.<div><div><br></div><div>-Alan<br><br><div class="gmail_quote">On Sun, Dec 2, 2012 at 3:44 AM, Dawn L <span dir="ltr"><<a href="mailto:dawn_l2012@yahoo.com" target="_blank">dawn_l2012@yahoo.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div style="font-size:12pt;font-family:times new roman,new york,times,serif"><div>I'm writing RabbitMQ C-client code. After I turn on the heartbeat option with the "heartbeat" parameter in amqp_login() function - i.e., passing a value 10 (seconds) instead of 0 when calling amqp_login()</div>
<div> </div>
<div>amqp_rpc_reply_t amqp_login </div>
<div> ( amqp_connection_state_t state,</div>
<div> char const *vhost,</div>
<div> int channel_max,</div>
<div> uint32_t frame_max,</div>
<div> int heartbeat,</div>
<div> amqp_sasl_method_enum sasl_method,</div>
<div> ... ) </div>
<div> </div>
<div>My C-client can start to receive heartbeat message (the message has frame_type "AMQP_FRAME_HEARTBEAT"). However, after getting the heartbeat messages for two times, the connection and channels opened by my client have been abruptly closed by the server. From what I read in the past articals, if the client sends any kind of message to server before the timeout, the connection shouldn't be closed. However, this is not the case for me - I've tried to respond with either normal messages (via normal channel), or frames with frame type AMQP_<var></var>FRAME_HEARTBEAT (via channel 0) right after the client received the heartbead message, but the connection is still closed by the server regardless.</div>
<div> </div>
<div>Is it because the heartbeat functionality has not been fully implemented yet? Or is there any special kind of message that should be send as response message to the heartbeat message? If it's the second case, can you provide sample code for reponse message? </div>
<div> </div>
<div>Thanks a lot,</div>
<div>Dawn </div></div></div><br>_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
<br></blockquote></div><br></div></div>