mirror of https://gitee.com/bigwinds/arangodb
adjusted default value for `--server.backlog-size` from 10 to 64
This commit is contained in:
parent
7b49603686
commit
93b9e6a8bf
|
@ -1,6 +1,8 @@
|
||||||
v2.6.0 (XXXX-XX-XX)
|
v2.6.0 (XXXX-XX-XX)
|
||||||
-------------------
|
-------------------
|
||||||
|
|
||||||
|
* adjusted default configuration value for `--server.backlog-size` from 10 to 64.
|
||||||
|
|
||||||
* issue #1231: bug xor feature in AQL: LENGTH(null) == 4
|
* issue #1231: bug xor feature in AQL: LENGTH(null) == 4
|
||||||
|
|
||||||
This changes the behavior of the AQL `LENGTH` function as follows:
|
This changes the behavior of the AQL `LENGTH` function as follows:
|
||||||
|
|
|
@ -103,7 +103,7 @@ ApplicationEndpointServer::ApplicationEndpointServer (ApplicationServer* applica
|
||||||
_keepAliveTimeout(300.0),
|
_keepAliveTimeout(300.0),
|
||||||
_defaultApiCompatibility(0),
|
_defaultApiCompatibility(0),
|
||||||
_allowMethodOverride(false),
|
_allowMethodOverride(false),
|
||||||
_backlogSize(10),
|
_backlogSize(64),
|
||||||
_httpsKeyfile(),
|
_httpsKeyfile(),
|
||||||
_cafile(),
|
_cafile(),
|
||||||
_sslProtocol(TLS_V1),
|
_sslProtocol(TLS_V1),
|
||||||
|
@ -113,6 +113,11 @@ ApplicationEndpointServer::ApplicationEndpointServer (ApplicationServer* applica
|
||||||
_sslContext(nullptr),
|
_sslContext(nullptr),
|
||||||
_rctx() {
|
_rctx() {
|
||||||
|
|
||||||
|
// if our default value is too high, we'll use half of the max value provided by the system
|
||||||
|
if (_backlogSize > SOMAXCONN) {
|
||||||
|
_backlogSize = SOMAXCONN / 2;
|
||||||
|
}
|
||||||
|
|
||||||
_defaultApiCompatibility = Version::getNumericServerVersion();
|
_defaultApiCompatibility = Version::getNumericServerVersion();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue