Smack/smack-tcp/src/main/java/org/jivesoftware/smack/tcp
Georg Lukas e5bbd19ef1 StanzaDroppedListener for XEP-0198 resumption failures
If a stream resume fails, smack will re-send all queued stanzas after a
reconnect. However, it does not make sense to re-send them:

* IQs / IQ responses have probably timed out
* MUC messages and PMs will be rejected as you haven't rejoined yet
* regular messages should be amended with a <delay> element

This patch adds a StanzaDroppedListener interface to the
XMPPTCPConnection. If at least one StanzaDroppedListener is provided,
all queued messages will be drained into the StanzaDroppedListener(s).
Otherwise, the original behavior of attempting to transmit them will be
followed.

Discussion: https://discourse.igniterealtime.org/t/xep-0198-resume-failure-reconnect-resending-of-muc-messages/83510/3

Signed-off-by: Georg Lukas <georg@op-co.de>
2019-03-10 21:24:37 +01:00
..
BundleAndDefer.java Minor javadoc fixes and improvements 2015-02-22 10:41:53 +01:00
BundleAndDeferCallback.java Fix minor codestyle issues 2017-12-17 11:03:46 +01:00
TCPInitializer.java Rework FileUtils 2018-04-06 10:25:06 +02:00
XMPPTCPConnection.java StanzaDroppedListener for XEP-0198 resumption failures 2019-03-10 21:24:37 +01:00
XMPPTCPConnectionConfiguration.java Deprecate setServiceName in favor of setXmppDomain 2015-06-08 14:42:05 +02:00
package-info.java Add missing package-info descriptions. 2018-02-21 16:47:11 +01:00