<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>There are no timeouts for acknowledgement but you can and should set a lower heartbeat interval for your connection<br><br>MK</div><div><br>On 04/05/2014, at 12:22, Surendar Marudhachalam <<a href="mailto:surendarft@gmail.com">surendarft@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr">yes i will change to manual ack. the problem is a new channel is being created when android disconnects from network while previous is still alive. so the situation is same queue but multiple channels and consumer tags. the old channel takes long time to close. so even if i change to manual acknowledgement the message delivered to old channel which is still alive will be in unacknowledged state. so i will be missing one message as the message is requeued only after connection closes. is there a way to set timeout for message acknowledgements?<br>
</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, May 4, 2014 at 5:31 PM, Michael Klishin <span dir="ltr"><<a href="mailto:mklishin@gopivotal.com" target="_blank">mklishin@gopivotal.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> On May 3, 2014 at 2:50:35 PM, Surendar Marudhachalam (<a href="mailto:surendarft@gmail.com">surendarft@gmail.com</a>) wrote:<br>
> > so if a user is offline messages delivered to the queue are sometimes<br>
> not received by user<br>
> we are using a server intermediate. so android client sends a<br>
> message to server and the server publishes it<br>
<br>
Messages will be routed to queues regardless of whether there are consumers on them.<br>
<br>
Do you use automatic acknowledgements? With consumers disconnecting frequently,<br>
you may want to consider manual acks:<br>
<br>
<a href="http://www.rabbitmq.com/tutorials/tutorial-two-java.html" target="_blank">http://www.rabbitmq.com/tutorials/tutorial-two-java.html</a><br>
--<br>
MK<br>
<br>
Software Engineer, Pivotal/RabbitMQ<br>
</blockquote></div><br></div>
</div></blockquote></body></html>