Skip to content

Commit 87996f7

Browse files
BonnyAD9sedmicha
authored andcommitted
Clarify MAX_CONNECTIONS
1 parent 7030256 commit 87996f7

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/plugins/input/tcp/src/Plugin.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,9 @@ Plugin::Plugin(ipx_ctx_t *ctx, Config &config) :
3232
}
3333

3434
void Plugin::get() {
35-
constexpr int MAX_CONNECTIONS = 16;
36-
std::array<Connection *, MAX_CONNECTIONS> connections{};
35+
/** Maximum number of connections to process in one call to get */
36+
constexpr int MAX_CONNECTION_BATCH_SIZE = 16;
37+
std::array<Connection *, MAX_CONNECTION_BATCH_SIZE> connections{};
3738

3839
auto count = m_clients.wait_for_connections(connections.begin(), connections.size());
3940

0 commit comments

Comments
 (0)