blob: 5bf277a8ee6bce4d073b2e9139173c31650df1a3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
// Copyright 2017 Yahoo Holdings. Licensed under the terms of the Apache 2.0 license. See LICENSE in the project root.
#include "rpcnetworkparams.h"
namespace mbus {
RPCNetworkParams::RPCNetworkParams()
: RPCNetworkParams("admin/slobrok.0")
{ }
RPCNetworkParams::RPCNetworkParams(config::ConfigUri configUri) :
_identity(Identity("")),
_slobrokConfig(std::move(configUri)),
_listenPort(0),
_maxInputBufferSize(256*1024),
_maxOutputBufferSize(256*1024),
_numThreads(4),
_tcpNoDelay(true),
_dispatchOnEncode(true),
_dispatchOnDecode(false),
_connectionExpireSecs(600),
_compressionConfig(CompressionConfig::LZ4, 6, 90, 1024)
{ }
RPCNetworkParams::~RPCNetworkParams() = default;
}
|