From 983200f912f41ba75a873c011bfbcd3b0285bf4c Mon Sep 17 00:00:00 2001 From: Havoc Pennington Date: Sat, 19 Apr 2003 16:16:24 +0000 Subject: 2003-04-19 Havoc Pennington * bus/driver.c (bus_driver_handle_hello): check limits and return an error if they are exceeded. * bus/connection.c: maintain separate lists of active and inactive connections, and a count of each. Maintain count of completed connections per user. Implement code to check connection limits. * dbus/dbus-list.c (_dbus_list_unlink): export * bus/bus.c (bus_context_check_security_policy): enforce a maximum number of bytes in the message queue for a connection --- bus/dispatch.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'bus/dispatch.c') diff --git a/bus/dispatch.c b/bus/dispatch.c index d1c19fd3..c1e67d6a 100644 --- a/bus/dispatch.c +++ b/bus/dispatch.c @@ -48,9 +48,6 @@ static dbus_bool_t send_one_message (DBusConnection *connection, void *data) { SendMessageData *d = data; - - if (!bus_connection_is_active (connection)) - return TRUE; if (!bus_context_check_security_policy (d->context, d->sender, @@ -93,7 +90,7 @@ bus_dispatch_broadcast_message (BusTransaction *transaction, d.transaction = transaction; d.error = &tmp_error; - bus_connections_foreach (connections, send_one_message, &d); + bus_connections_foreach_active (connections, send_one_message, &d); if (dbus_error_is_set (&tmp_error)) { -- cgit