diff options
author | Mickaël Rémond <mickael.remond@process-one.net> | 2006-05-22 10:17:22 +0000 |
---|---|---|
committer | Mickaël Rémond <mickael.remond@process-one.net> | 2006-05-22 10:17:22 +0000 |
commit | 753e768090560ae2202c89922ba8ee4171c8ba7b (patch) | |
tree | 2ea47eac380cdfe4b942d3d509b07119d887cc07 /doc/guide.tex | |
parent | * src/ejabberd_sm.erl: An option to limit the number of opened sessions (diff) |
* src/ejabberd_sm.erl: The max_user_sessions has been moved to
host configuration.
* src/ejabberd.cfg.example: Likewise.
* doc/guide.tex: Likewise.
SVN Revision: 568
Diffstat (limited to 'doc/guide.tex')
-rw-r--r-- | doc/guide.tex | 29 |
1 files changed, 16 insertions, 13 deletions
diff --git a/doc/guide.tex b/doc/guide.tex index 5e2bc1af4..3bf520849 100644 --- a/doc/guide.tex +++ b/doc/guide.tex @@ -505,6 +505,19 @@ Examples: \end{verbatim} \end{itemize} +\subsubsection{Limitation of the number of opened sessions} +\label{sec:configmaxsessions} +\ind{options!max\_user\_sessions} + +This option specifies the maximum number of sessions (authenticated +connections) per user. If a user tries to open more than the maximum number of +allowed sessions, with different resources, the first opened session will be +disconnected. The error ``\term{session replaced}'' is send to the +disconnected session. This value is either a number or \term{infinity}. For +example \verb|{max\_user\_sessions, 10}|. The default value is \term{10}. + +This option can be define per virtual host. See section~\ref{sec:configvirtualhost}. + \subsubsection{Listened Sockets} \label{sec:configlistened} \ind{options!listen} @@ -526,9 +539,9 @@ Currently next modules are implemented: \begin{tabular}{|l|l|p{87mm}|} \hline \texttt{ejabberd\_c2s}& Description& Handles c2s connections.\\ \cline{2-3} & Options& \texttt{access}, \texttt{certfile}, \texttt{inet6}, - \texttt{ip}, \texttt{max\_stanza\_size}, \texttt{max\_user\_sessions}, - \texttt{shaper}, \texttt{ssl}, \texttt{tls}, \texttt{starttls}, - \texttt{starttls\_required}, \texttt{zlib}\\ + \texttt{ip}, \texttt{max\_stanza\_size}, \texttt{shaper}, \texttt{ssl}, + \texttt{tls}, \texttt{starttls}, \texttt{starttls\_required}, + \texttt{zlib}\\ \hline \texttt{ejabberd\_s2s\_in}& Description& Handles incoming s2s connections.\\ \cline{2-3} & Options& \texttt{inet6}, \texttt{ip}, @@ -574,16 +587,6 @@ The following options are available: option specifies an approximate maximal size in bytes of XML stanzas. For example \verb|{max\_stanza\_size, 65536}|. The default value is ``\term{infinity}''. - - \titem{\{max\_user\_sessions, Max\}} \ind{options!max\_user\_sessions}This - option specifies the maximum number of sessions (authenticated - connections) per user. If a user tries to open more than the maximum - number of allowed sessions, with different resources, the first opened - session will be disconnected. The error ``\term{session replaced}'' is - send to the disconnected session. This value is either a number or - \term{infinity}. For example \verb|{max\_user\_sessions, 10}|. The - default value is \term{10}. - \titem{\{shaper, <access rule>\}} \ind{options!shaper}This option defines a shaper for the port (see section~\ref{sec:configshaper}). The default value is ``\term{none}''. |