Project

General

Profile

sometimes my client app can retrieve duplicate message which passed several days

flame fire
Added over 1 year ago

Hello!

Sometimes my client app can retrieve duplicate message which passed several days.

If my config is incorrect?

Here is my init.property:

config-type=--gen-config-def

--virt-hosts=mline-test.9yiwu.com,mline.9yiwu.com

--admins=admin@mline-test.9yiwu.com,pubsub.mline-test.9yiwu.com,http@mline-hk-test-core01,admin@mline.9yiwu.com,pubsub.mline.9yiwu.com

--cluster-mode=true

--cluster-connect-all = true

--cluster-nodes=mline-hk-test-core01,mline-hk-test-node01

--cm-ht-traffic-throttling=xmpp:25k:0:disc,bin:200m:0:disc

--debug=server

--user-db-uri=jdbc:mysql://localhost/tigasedb?user=mlinetest&password=mlinetest@@##YIWU&autoReconnect=true&useUnicode=true

--sm-plugins=+jabber:iq:auth,+urn:ietf:params:xml:ns:xmpp-sasl,+urn:ietf:params:xml:ns:xmpp-bind,+urn:ietf:params:xml:ns:xmpp-session,-jabber:iq:register,+jabber:iq:roster,+presence-state,+presence-subscription,+basic-filter,+domain-filter,-jabber:iq:privacy,-jabber:iq:version,+http://jabber.org/protocol/stats,+starttls,-vcard-temp,+http://jabber.org/protocol/commands,-jabber:iq:private,+urn:xmpp:ping,+pep,+zlib,+amp,-message-archive-xep-0136,+resource_manager,+token_manager,-msgoffline,msgoffline_manager,+session_manager

--comp-name-2=pubsub

--comp-class-2=tigase.pubsub.PubSubComponent

--comp-name-3=http

--comp-class-3=tigase.http.HttpMessageReceiver

http/setup/admin-credentials=admin:tigase

c2s/processors[s]=urn:xmpp:sm:3

http/rest/api-keys[s]=open_access

--vhost-tls-required=true

--vhost-anonymous-enabled=false

--vhost-register-enabled=false

c2s/urn:xmpp:sm:3/max-resumption-timeout[I]=5

c2s/urn:xmpp:sm:3/resumption-timeout[I]=5


Replies (3)

Added by Wojciech Kapcia TigaseTeam over 1 year ago

flame fire wrote:

Hello!

Sometimes my client app can retrieve duplicate message which passed several days.

If my config is incorrect?

Your config looks correct, but I don't understand your problem - could you rephrase it or clarify what is the problem exactly?

Added by flame fire over 1 year ago

OK.

On 2017/08/14,the user get some offline message suddenly during chatting.but these offline message he had receive on 2017/08/03.

And I empty the msg_history table every day.I do not know how these message comes.

how many place to store the offline message in tigase? what is them?

Added by Wojciech Kapcia TigaseTeam over 1 year ago

Offline messages should be stored only in msg_history table (database wise). They could be stored in memory for re-delivery while using SM, but that timespan is definitely way to long for it.

The best option would be to try to replicate it and analyse the logs.

    (1-3/3)