dryang / rpms / systemd

Forked from rpms/systemd a year ago
Clone
1ff636
From b4ea0d8280135b7eabb1bb70e24d62c86e065db3 Mon Sep 17 00:00:00 2001
1ff636
From: Hannes Reinecke <hare@suse.de>
1ff636
Date: Wed, 4 Mar 2015 16:32:17 +0100
1ff636
Subject: [PATCH] Allow up to 4096 simultaneous connections
1ff636
1ff636
On large system we hit the limit on 512 simultaneous dbus
1ff636
connections, resulting in tons of annoying messages:
1ff636
1ff636
Too many concurrent connections, refusing
1ff636
1ff636
This patch raises the limit to 4096.
1ff636
1ff636
(cherry picked from commit cbecf9bf929318533fea798c57c10efcf6b2b447)
1ff636
---
1ff636
 src/core/dbus.c | 2 +-
1ff636
 1 file changed, 1 insertion(+), 1 deletion(-)
1ff636
1ff636
diff --git a/src/core/dbus.c b/src/core/dbus.c
181b3f
index 260775cd8..85b517486 100644
1ff636
--- a/src/core/dbus.c
1ff636
+++ b/src/core/dbus.c
1ff636
@@ -44,7 +44,7 @@
1ff636
 #include "bus-internal.h"
1ff636
 #include "selinux-access.h"
1ff636
 
1ff636
-#define CONNECTIONS_MAX 512
1ff636
+#define CONNECTIONS_MAX 4096
1ff636
 
1ff636
 static void destroy_bus(Manager *m, sd_bus **bus);
1ff636