1
0
Fork 0

increased default value for max-packet-size, added code comment

This commit is contained in:
jsteemann 2018-08-08 13:39:11 +02:00
parent 606c15ce48
commit 4727b44fe3
1 changed files with 3 additions and 1 deletions

View File

@ -54,7 +54,7 @@ ClientFeature::ClientFeature(application_features::ApplicationServer* server,
_jwtSecret(""),
_connectionTimeout(connectionTimeout),
_requestTimeout(requestTimeout),
_maxPacketSize(128 * 1024 * 1024),
_maxPacketSize(1024 * 1024 * 1024),
_sslProtocol(TLS_V12),
_allowJwtSecret(allowJwtSecret),
_retries(DEFAULT_RETRIES),
@ -112,6 +112,8 @@ void ClientFeature::collectOptions(std::shared_ptr<ProgramOptions> options) {
options->addOption("--server.request-timeout", "request timeout in seconds",
new DoubleParameter(&_requestTimeout));
// note: the max-packet-size is used for all client tools that use the
// SimpleHttpClient. fuerte does not use this
options->addHiddenOption(
"--server.max-packet-size",
"maximum packet size (in bytes) for client/server communication",