mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +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">
|
</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">
|
||||||
|
@ -823,6 +823,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}
|
||||||
|
@ -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 ->
|
||||||
|
Loading…
Reference in New Issue
Block a user