25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-11-28 16:34:13 +01:00

Support ejabberd_listener option 'backlog' to increase TCP backlog (thanks to Janusz Dziemidowicz)(EJAB-1063)

SVN Revision: 2678
This commit is contained in:
Badlop 2009-10-19 13:23:46 +00:00
parent 84a1cc943d
commit 66cd86e726
4 changed files with 14 additions and 0 deletions

View File

@ -700,6 +700,12 @@ Handles incoming HTTP connections.<BR>
</P><DL CLASS="description"><DT CLASS="dt-description"> </P><DL CLASS="description"><DT CLASS="dt-description">
<B><TT>{access, AccessName}</TT></B></DT><DD CLASS="dd-description"> This option defines <B><TT>{access, AccessName}</TT></B></DT><DD CLASS="dd-description"> This option defines
access to the port. The default value is <TT>all</TT>. access to the port. The default value is <TT>all</TT>.
</DD><DT CLASS="dt-description"><B><TT>{backlog, Value}</TT></B></DT><DD CLASS="dd-description"> The backlog value
defines the maximum length that the queue of pending connections may
grow to. This should be increased if the server is going to handle
lots of new incoming connections as they may be dropped if there is
no space in the queue (and ejabberd was not able to accept them
immediately). Default value is 5.
</DD><DT CLASS="dt-description"><B><TT>{certfile, Path}</TT></B></DT><DD CLASS="dd-description"> Full path to a file containing the default SSL certificate. </DD><DT CLASS="dt-description"><B><TT>{certfile, Path}</TT></B></DT><DD CLASS="dd-description"> Full path to a file containing the default SSL certificate.
To define a certificate file specific for a given domain, use the global option <TT>domain_certfile</TT>. To define a certificate file specific for a given domain, use the global option <TT>domain_certfile</TT>.
</DD><DT CLASS="dt-description"><B><TT>{service_check_from, true|false}</TT></B></DT><DD CLASS="dd-description"> </DD><DT CLASS="dt-description"><B><TT>{service_check_from, true|false}</TT></B></DT><DD CLASS="dd-description">

View File

@ -838,6 +838,12 @@ This is a detailed description of each option allowed by the listening modules:
\begin{description} \begin{description}
\titem{\{access, AccessName\}} \ind{options!access}This option defines \titem{\{access, AccessName\}} \ind{options!access}This option defines
access to the port. The default value is \term{all}. access to the port. The default value is \term{all}.
\titem{\{backlog, Value\}} \ind{options!backlog}The backlog value
defines the maximum length that the queue of pending connections may
grow to. This should be increased if the server is going to handle
lots of new incoming connections as they may be dropped if there is
no space in the queue (and ejabberd was not able to accept them
immediately). Default value is 5.
\titem{\{certfile, Path\}} Full path to a file containing the default SSL certificate. \titem{\{certfile, Path\}} Full path to a file containing the default SSL certificate.
To define a certificate file specific for a given domain, use the global option \term{domain\_certfile}. To define a certificate file specific for a given domain, use the global option \term{domain\_certfile}.
\titem{\{service\_check\_from, true|false\}} \ind{options!service\_check\_from} \titem{\{service\_check\_from, true|false\}} \ind{options!service\_check\_from}

View File

@ -43,6 +43,7 @@
* Configuration * Configuration
- Added option access_max_user_messages for mod_offline - Added option access_max_user_messages for mod_offline
- Added option backlog for ejabberd_listener to increase TCP backlog
- Added option define_macro and use_macro - Added option define_macro and use_macro
- Added option include_config_file to include additional configuration files - Added option include_config_file to include additional configuration files
- Added option max_fsm_queue - Added option max_fsm_queue

View File

@ -104,6 +104,7 @@ init(PortIP, Module, RawOpts) ->
SockOpts = lists:filter(fun({ip, _}) -> true; SockOpts = lists:filter(fun({ip, _}) -> true;
(inet6) -> true; (inet6) -> true;
(inet) -> true; (inet) -> true;
({backlog, _}) -> true;
(_) -> false (_) -> false
end, Opts), end, Opts),
if Proto == udp -> if Proto == udp ->