Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [paho-dev] Android MQTT service disconnection issue with QoS=1 and RabbitMQ server

Hi,
  I think you need to implement a reconnect logic in the Android app (unless such a logic is already there).
Paho does not attempt to reconnect automatically.

Regards,
  Cristiano

On 05/10/2015 09:14, Milind Utsav wrote:
I am trying to implement a push notification service for Android clients. The server is RabbitMQ with the MQTT adapter. The client on Android is of course, Paho Java client. The server side is Paho in Python sendin QoS 1 messages.

I couldn't get the connection to work reliably. Every now and then, the connection times out and the client is disconnected. In the RabbitMQ console, I can see that there are no active consumers listening to the topic. The Android client doesn't receive messages post that, until you restart the app, and hence the service. In a real world scenario, I can't expect customers to reopen the app everytime to get the notifications.

Right now, I am having a keepalive duration of 120s, which improved the performance of delivery from when the value was 60 s, but only slightly.

Are there any recommendations as to how I should tune my connections to make them more reliable?

--
Milind Utsav
+91-9742565861 (M)


_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev

--
Cristiano De Alti
Principal Software Engineer

direct:    +39 0433 485468

EUROTECH
Imagine.Build.Succeed.
HEADQUARTERS
EUROTECH S.p.A. – Via Fratelli Solari, 3/a | 33020 Amaro UD | Italy | Tel. +39. 0433 485411  | Fax +39. 0433 485499 |
Cap. Soc. 8.878.946,00 € I.V. | P.IVA / C.F.: IT 01791330309 | REA Udine 196115
www.eurotech.com
____________________________________

Il presente messaggio ed ogni suo allegato sono da intendersi inviati esclusivamente agli effettivi destinatari e potrebbero essere soggetti a restrizioni legali. Se avete ricevuto questo messaggio per errore vi invitiamo a darne immediata notifica al mittente e cancellarlo dal vostro sistema. Qualsiasi altro uso di questo messaggio da parte vostra e' strettamente proibito.
 
This e-mail, and any file attached to it, is meant only for the intended recipient of the transmission and may be a communication privileged by law. If you have received it in error, please notify the sender immediately and delete the original from your system. Any other use of this e-mail by you is strictly forbidden.
____________________________________
 
Per favore, pensate all’ambiente prima di stampare questa e-mail. Please consider the environment before printing this e-mail.

Back to the top