We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
MAX_CONNECTIONS
1 parent 7030256 commit 87996f7Copy full SHA for 87996f7
src/plugins/input/tcp/src/Plugin.cpp
@@ -32,8 +32,9 @@ Plugin::Plugin(ipx_ctx_t *ctx, Config &config) :
32
}
33
34
void Plugin::get() {
35
- constexpr int MAX_CONNECTIONS = 16;
36
- std::array<Connection *, MAX_CONNECTIONS> connections{};
+ /** Maximum number of connections to process in one call to get */
+ constexpr int MAX_CONNECTION_BATCH_SIZE = 16;
37
+ std::array<Connection *, MAX_CONNECTION_BATCH_SIZE> connections{};
38
39
auto count = m_clients.wait_for_connections(connections.begin(), connections.size());
40
0 commit comments