Skip to content

Commit

Permalink
Add the maxclients to the info command output (apache#391)
Browse files Browse the repository at this point in the history
  • Loading branch information
git-hulk authored and ShooterIT committed Dec 7, 2021
1 parent 12f6493 commit 4fe8dfb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/server.cc
Original file line number Diff line number Diff line change
Expand Up @@ -664,6 +664,7 @@ void Server::GetServerInfo(std::string *info) {
void Server::GetClientsInfo(std::string *info) {
std::ostringstream string_stream;
string_stream << "# Clients\r\n";
string_stream << "maxclients:" << config_->maxclients << "\r\n";
string_stream << "connected_clients:" << connected_clients_ << "\r\n";
string_stream << "monitor_clients:" << monitor_clients_ << "\r\n";
*info = string_stream.str();
Expand Down

0 comments on commit 4fe8dfb

Please sign in to comment.