summaryrefslogtreecommitdiff
path: root/src/Main.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2020-03-19 13:30:46 +0100
committerMax Kellermann <max@musicpd.org>2020-03-19 13:30:46 +0100
commit56c234b4105f56c77d10746ee2720bd8128569ee (patch)
treec49d3ef844c8bacc86493842386ac8a2286b3bb0 /src/Main.cxx
parent82743dfd025ffb6841f61559a5cea3d75f9fd3ce (diff)
raise default "max_connections" value to 100
Documentation says the limit is 5, but it was really 10 (at least since 2004). But since MPD wants to promote using many small clients idling around, and these clients consume only very few resources, it seems reasonable to raise this limit's default value.
Diffstat (limited to 'src/Main.cxx')
-rw-r--r--src/Main.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Main.cxx b/src/Main.cxx
index 686813c1c..7ca83c111 100644
--- a/src/Main.cxx
+++ b/src/Main.cxx
@@ -460,7 +460,7 @@ MainOrThrow(int argc, char *argv[])
#endif
const unsigned max_clients =
- raw_config.GetPositive(ConfigOption::MAX_CONN, 10);
+ raw_config.GetPositive(ConfigOption::MAX_CONN, 100);
instance->client_list = new ClientList(max_clients);
initialize_decoder_and_player(raw_config, config.replay_gain);