Hi, Roger.
I'm not certain it does call on_disconnect, but I can't say for
sure. I was under the impression that my program doesn't. Even if
that is so, shouldn't it reconnect once the network comes back up
again?
I looked through the existing bug reports on bugs.eclipse.org and I
found an entry that looks kind of like mine [https://bugs.eclipse.org/bugs/show_bug.cgi?id=436463],
except their program doesn't publish, it only consumes. That entry
also references https://bugs.eclipse.org/bugs/show_bug.cgi?id=436615.
It says fixed, but in the version(1.1) I have installed that patch
is not applied (It only says #FIXME).
To clarify a mistake: I am using loop_start, not loop_forever.
On 05/20/2015 05:16 PM, Roger Light
wrote:
Hi Dumitru,
The client should disconnect from the server and call the
disconnect callback if it doesn't receive a PINGRESP after
keepalive seconds from sending the PINGREQ. This check is
carried out in the loop_misc() function.
If the broker doesn't send a PUBACK the client will keep on
retrying to send a PUBLISH at intervals until (hopefully!)
the broker replies.
Cheers,
Roger
_______________________________________________
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
|