diff --git a/0001-adjusting-maximum-number-of-connections-for-per-user.patch b/0001-adjusting-maximum-number-of-connections-for-per-user.patch new file mode 100644 index 0000000000000000000000000000000000000000..38fc9ca9ef373fa1248cfab93f9c5a024c13cca6 --- /dev/null +++ b/0001-adjusting-maximum-number-of-connections-for-per-user.patch @@ -0,0 +1,50 @@ +From b9e85e0b870045a95101b0d8395b103025e9ab10 Mon Sep 17 00:00:00 2001 +From: hanjinpeng +Date: Tue, 2 Jul 2024 09:45:41 +0800 +Subject: [PATCH] adjusting maximum number of connections for per user + +--- + bus/config-parser.c | 4 ++-- + bus/system.conf.in | 4 ++-- + 2 files changed, 4 insertions(+), 4 deletions(-) + +diff --git a/bus/config-parser.c b/bus/config-parser.c +index 9f2e3c7..a13b32b 100644 +--- a/bus/config-parser.c ++++ b/bus/config-parser.c +@@ -516,14 +516,14 @@ bus_config_parser_new (const DBusString *basedir, + parser->limits.pending_fd_timeout = 150000; /* 2.5 minutes */ + + parser->limits.max_incomplete_connections = 64; +- parser->limits.max_connections_per_user = 256; ++ parser->limits.max_connections_per_user = 512; + parser->limits.max_containers_per_user = 16; + + /* Note that max_completed_connections / max_connections_per_user + * is the number of users that would have to work together to + * DOS all the other users. The same applies to containers. + */ +- parser->limits.max_completed_connections = 2048; ++ parser->limits.max_completed_connections = 4096; + parser->limits.max_containers = 512; + /* Similarly max_connections_per_user / max_connections_per_container + * is the number of app-containers per user that would have to work +diff --git a/bus/system.conf.in b/bus/system.conf.in +index d2f3244..f53504c 100644 +--- a/bus/system.conf.in ++++ b/bus/system.conf.in +@@ -119,9 +119,9 @@ + + + +- ++ + +- ++ + + + +-- +2.27.0 + diff --git a/dbus.spec b/dbus.spec index b63fb3a25653ada734b4e39db2e684457bf8551f..c3a790a2a78ccd33adfbdea343725c75fb83ecaa 100644 --- a/dbus.spec +++ b/dbus.spec @@ -1,7 +1,7 @@ Name: dbus Epoch: 1 Version: 1.14.8 -Release: 2 +Release: 3 Summary: System Message Bus License: AFLv3.0 or GPLv2+ URL: http://www.freedesktop.org/Software/dbus/ @@ -10,6 +10,7 @@ Source1: 00-start-message-bus.sh Patch0001: bugfix-let-systemd-restart-dbus-when-the-it-enters-failed.patch Patch0002: print-load-average-when-activate-service-timeout.patch +Patch0003: 0001-adjusting-maximum-number-of-connections-for-per-user.patch Patch6001: backport-tools-Use-Python3-for-GetAllMatchRules.patch Patch6002: backport-Do-not-crash-when-reloading-configuration.patch @@ -225,6 +226,9 @@ fi %exclude %{_pkgdocdir}/README %changelog +* Wed Jul 3 2024 Han Jinpeng - 1:1.14.8-3 +- Adjust the maximum number of connections for dbus users, fix the issue of insufficient connections + * Wed Feb 21 2024 hongjinghao - 1:1.14.8-2 - add backport-Do-not-crash-when-reloading-configuration.patch