diff --git a/ChangeLog b/ChangeLog index 182461b8a..0ae2ea089 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2007-07-24 Mickael Remond + * doc/guide.tex: Added recommandations on max_stanza options + usage. + * src/ejabberd_s2s_out.erl: Autodisconnect s2s connections which are overloaded (EJAB-287). * src/p1_fsm.erl: Likewise. diff --git a/doc/guide.html b/doc/guide.html index f0de1e5cf..52090d3da 100644 --- a/doc/guide.html +++ b/doc/guide.html @@ -6,7 +6,7 @@ - & ejabberd 2.0.0 beta 1 + & ejabberd 1.1.2 & & Installation and Operation Guide @@ -85,7 +85,7 @@ SPAN{width:20%; float:right; text-align:left; margin-left:auto;}


- +
 ejabberd 2.0.0 beta 1
 ejabberd 1.1.2
  
 Installation and Operation Guide

@@ -541,11 +541,15 @@ instructions for ejabberd).

inet6
Set up the socket for IPv6.
{ip, IPAddress}
This option specifies which network interface to listen for. For example {ip, {192, 168, 1, 1}}. -
{max_stanza_size, Size}
This -option specifies an approximate maximum size in bytes of XML stanzas. -Approximate, because it is calculated with the precision of one block of -readed data. For example {max_stanza_size, 65536}. The default -value is infinity. +
{max_stanza_size, Size}
+This option specifies an +approximate maximum size in bytes of XML stanzas. Approximate, +because it is calculated with the precision of one block of readed +data. For example {max_stanza_size, 65536}. The default +value is infinity. Recommanded values are 65536 for c2s +connections and 131072 for s2s connections. s2s max stanza size +must always much higher than c2s limit. Change this value with +extreme care as it can cause unwanted disconnect if set too low.
{shaper, <access rule>}
This option defines a shaper for the port (see section 3.1.6). The default value is none. diff --git a/doc/guide.tex b/doc/guide.tex index f8377bed6..b5175f93c 100644 --- a/doc/guide.tex +++ b/doc/guide.tex @@ -539,11 +539,15 @@ The following options are available: \titem{inet6} \ind{options!inet6}\ind{IPv6}Set up the socket for IPv6. \titem{\{ip, IPAddress\}} \ind{options!ip}This option specifies which network interface to listen for. For example \verb|{ip, {192, 168, 1, 1}}|. - \titem{\{max\_stanza\_size, Size\}} \ind{options!max\_stanza\_size}This - option specifies an approximate maximum size in bytes of XML stanzas. - Approximate, because it is calculated with the precision of one block of - readed data. For example \verb|{max_stanza_size, 65536}|. The default - value is \term{infinity}. + \titem{\{max\_stanza\_size, Size\}} + \ind{options!max\_stanza\_size}This option specifies an + approximate maximum size in bytes of XML stanzas. Approximate, + because it is calculated with the precision of one block of readed + data. For example \verb|{max_stanza_size, 65536}|. The default + value is \term{infinity}. Recommanded values are 65536 for c2s + connections and 131072 for s2s connections. s2s max stanza size + must always much higher than c2s limit. Change this value with + extreme care as it can cause unwanted disconnect if set too low. \titem{\{shaper, \}} \ind{options!shaper}This option defines a shaper for the port (see section~\ref{shapers}). The default value is \term{none}.