summaryrefslogtreecommitdiff
path: root/src/load-fragment.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-06-19 04:25:28 +0200
committerLennart Poettering <lennart@poettering.net>2010-06-19 04:25:34 +0200
commit6cf6bbc2682c6df010d64ea7e49d93affa7282cd (patch)
tree510fd14e79d61bcf6f9628113c38de7d219f8671 /src/load-fragment.c
parenta3d4e06dfa234bf2a9398c8e534b705b68aa50a1 (diff)
socket: enforce limit on number of concurrent connections
Diffstat (limited to 'src/load-fragment.c')
-rw-r--r--src/load-fragment.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/load-fragment.c b/src/load-fragment.c
index d6a35f7ff0..b7bb4d7c5c 100644
--- a/src/load-fragment.c
+++ b/src/load-fragment.c
@@ -1516,6 +1516,7 @@ static int load_from_path(Unit *u, const char *path) {
{ "SocketMode", config_parse_mode, &u->socket.socket_mode, "Socket" },
{ "KillMode", config_parse_kill_mode, &u->socket.kill_mode, "Socket" },
{ "Accept", config_parse_bool, &u->socket.accept, "Socket" },
+ { "MaxConnections", config_parse_unsigned, &u->socket.max_connections, "Socket" },
EXEC_CONTEXT_CONFIG_ITEMS(u->socket.exec_context, "Socket"),
{ "What", config_parse_string, &u->mount.parameters_fragment.what, "Mount" },