chiark / gitweb /
socket: enforce limit on number of concurrent connections
[elogind.git] / src / load-fragment.c
index d6a35f7ff0da1c5f54c290cf987bcd32946eefe9..b7bb4d7c5c5f221201fd7539f8e4700b51ece7e2 100644 (file)
@@ -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"   },