Configuration
Prev | Chapter 8. Configuring the Tigase Server to Load a Component | Next

## Configuration

### Resumption timeout

It is now possible to set a default stream resumption timeout that the server uses. This allows control of how long a server will wait for a reconnection from a client. This can be particularly helpful to manage mobile clients connecting to your server as they may not have complete coverage, and you do not want to close the stream right away. By default, Tigase sets this value to 60 seconds.

    c2s/processors/urn\:xmpp\:sm\:3/resumption-timeout[I]=90

This sets the default timeout to 90 seconds. You may, if you choose, specify a maximum timout time, which will allow the server to wait between the default and maximum before a connection is closed.

    c2s/processors/urn\:xmpp\:sm\:3/max-resumption-timeout[I]=900

### Note

If the max-resumption-timeout is not set, it will always equal the resumption-timeout number, or default is none is set.

Available since v7.1.0

### Packet Redelivery

Normally packets are handled by C2S and are typically processed in the first run, however if that fails to send, a retry of sending that packet will occur after 60 seconds. If that second try fails, the delay will increase by a factor of 1.5. This means that the next retry will occur at 90, 135, and so on until the retry count is reached. By default this count is 15, however it can be changed by using the following setting:

    c2s/packet-delivery-retry-count[I]=5

This setting prevents packet redelivery attempts from continuing into infinity (or when the host machine runs out of memory).

Prev | Up | Next
Client to Server Communication | Home | Socks 5 Component