1
0
Fork 0

adjusted default value for `--server.backlog-size` from 10 to 64

This commit is contained in:
Jan Steemann 2015-04-16 12:29:00 +02:00
parent 7b49603686
commit 93b9e6a8bf
2 changed files with 8 additions and 1 deletions

View File

@ -1,6 +1,8 @@
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
This changes the behavior of the AQL `LENGTH` function as follows:

View File

@ -103,7 +103,7 @@ ApplicationEndpointServer::ApplicationEndpointServer (ApplicationServer* applica
_keepAliveTimeout(300.0),
_defaultApiCompatibility(0),
_allowMethodOverride(false),
_backlogSize(10),
_backlogSize(64),
_httpsKeyfile(),
_cafile(),
_sslProtocol(TLS_V1),
@ -113,6 +113,11 @@ ApplicationEndpointServer::ApplicationEndpointServer (ApplicationServer* applica
_sslContext(nullptr),
_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();
}