Project

General

Profile

Tigase closes the client's connection

Gabriel Rossetti
Added almost 4 years ago

Hi,

I have an issue that I am trying to debug, basically the server sends the client (smack) lots of msgs. The client at some point starts sending them back as XMPP errors (another issue I am having). At some point it looks like the server closes the client's connection. I say it looks because I am having issues debugging this since it happens with high volume.

Does Tigase have some sort of protection against this and kicks my client off?

Thanks


Replies (4)

Added by Wojciech Kapcia TigaseTeam almost 4 years ago

Gabriel Rossetti wrote:

Does Tigase have some sort of protection against this and kicks my client off?

Most likely this: --cm-traffic-throttling (and there is similar property for 'high traffic' components as well --cm-ht-traffic-throttling)

Added by Gabriel Rossetti almost 4 years ago

Super, thx.

It looks like this is not enabled by default so I guess this is not what is causing the issue.

BTW, 'high traffic' components are components in cluster mode or is this something else?

Added by Wojciech Kapcia TigaseTeam almost 4 years ago

Gabriel Rossetti wrote:

It looks like this is not enabled by default so I guess this is not what is causing the issue.

It is enabled by default - you have:

Default value: xmpp:2500:0:disc,bin:20m:0:disc

so your client will get disconnected after sending more than 2500 stanzas per minute or more than 20m bytes.

BTW, 'high traffic' components are components in cluster mode or is this something else?

Again, as linked documentation says: that is s2s, external components and other high - which also includes clustering component.

There is another mechanism related to limitations: --elements-number-limit

Added by Gabriel Rossetti almost 4 years ago

Thanks, I see now, the ht version is for non-user connections (e.g. in my case component to component).

    (1-4/4)