mirror of
https://github.com/processone/ejabberd.git
synced 2024-12-24 17:29:28 +01:00
Support ejabberd_listener option 'backlog' to increase TCP backlog (thanks to Janusz Dziemidowicz)(EJAB-1063)
SVN Revision: 2679
This commit is contained in:
parent
9a6c869cb8
commit
227514c20c
@ -690,6 +690,12 @@ Handles incoming HTTP connections.<BR>
|
||||
</P><DL CLASS="description"><DT CLASS="dt-description">
|
||||
<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>.
|
||||
</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.
|
||||
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">
|
||||
|
@ -823,6 +823,12 @@ This is a detailed description of each option allowed by the listening modules:
|
||||
\begin{description}
|
||||
\titem{\{access, AccessName\}} \ind{options!access}This option defines
|
||||
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.
|
||||
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}
|
||||
|
@ -104,6 +104,7 @@ init(PortIP, Module, RawOpts) ->
|
||||
SockOpts = lists:filter(fun({ip, _}) -> true;
|
||||
(inet6) -> true;
|
||||
(inet) -> true;
|
||||
({backlog, _}) -> true;
|
||||
(_) -> false
|
||||
end, Opts),
|
||||
if Proto == udp ->
|
||||
|
Loading…
Reference in New Issue
Block a user