Project

General

Profile

tigase lost message when psi+ client disconnect network

话语 和
Added over 3 years ago

config-type=--gen-config-def

--admins=admin@xmpp.tigase.com,thy002@xmpp.tigase.com

--virt-hosts=xmpp.tigase.com

--debug=server,cluster

--comp-name-1=http

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

--comp-name-2 = muc

--comp-class-2 = tigase.muc.MUCComponent

--comp-name-3 = pubsub

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

--comp-name-4 = message-archive

--comp-class-4 = tigase.archive.MessageArchiveComponent

--user-db=mysql

--user-db-uri=jdbc:mysql://192.168.1.110:3306/tigasedb?user=root&password=thy123

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

--sm-plugins=+amp

Above is my init.properties,the testing process is as follows:

psi+ client1 login in PC1 and create a node,psi+ client2 login in PC2 and subscribes the node.Pubsub is ok.

In client2's xml console excuse ,disable the PC2 network.

In client1's xml console,client1 publish message,enable the PC2 network,relogin client2,client2 do not receive the message.

The whole finished at maximum recovery time.

This is why?


Replies (5)

Added by Wojciech Kapcia TigaseTeam over 3 years ago

Is the message is stored to the offline store in the database?

Added by 话语 和 over 3 years ago

No,There is no pubsub message in database.

Added by Wojciech Kapcia TigaseTeam over 3 years ago

Which Tigase version do you use and what is the pubsub payload? Tigase only stores to offline repository only some stanzas (messages with body for example).

Added by 话语 和 over 3 years ago

Tigase version is tigase-server-7.0.1-b3810,publish item is below:

<iq type='set'

    to='pubsub.xmpp.tigase.com'
    id='1-1'>
  <pubsub xmlns='http://jabber.org/protocol/pubsub'>
    <publish node='XMPP_NODE1'>
      <item id='XMPP_NODE1-220'>
    <title>Soliloquy</title>
    <summary>
        1122
        </summary>
      </item>
    </publish>
  </pubsub>
</iq>

The client receives is  below:
<message from="pubsub.xmpp.tigase.com" to="admin@xmpp.tigase.com" id="2">
<event xmlns="http://jabber.org/protocol/pubsub#event">
<items node="XMPP_NODE2">
<item id="XMPP_NODE1-220">
      <title>Soliloquy</title>
<summary>
        1122
        </summary>
</item>
</items>
</event>
</message>

Added by Wojciech Kapcia TigaseTeam over 3 years ago

This should be stored to the offline storage. Assuming of course, that you configured pubsub node to send notifications also to offline users.

    (1-5/5)