diff options
author | Ross Burton <ross@openedhand.com> | 2005-07-27 19:38:41 +0000 |
---|---|---|
committer | Ross Burton <ross@openedhand.com> | 2005-07-27 19:38:41 +0000 |
commit | c9c16dd08766d3ad25a362ae335e64f1ca907373 (patch) | |
tree | e503e33df2d05965017ce5dbd62cc544be6dcb48 | |
parent | 915100a3765cdb60d04d314cf79a2687b6c5b5cb (diff) |
Reduce size of message cache
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | dbus/dbus-message.c | 2 |
2 files changed, 6 insertions, 1 deletions
@@ -1,3 +1,8 @@ +2005-07-27 Ross Burton <ross@openedhand.com> + + * dbus/dbus-message.c: + Reduce the size of the maximum cached message to 10K. + 2005-07-25 Ross Burton <ross@openedhand.com> * glib/dbus-gproxy.c: diff --git a/dbus/dbus-message.c b/dbus/dbus-message.c index 983eea93..880c25ef 100644 --- a/dbus/dbus-message.c +++ b/dbus/dbus-message.c @@ -510,7 +510,7 @@ dbus_message_finalize (DBusMessage *message) */ /** Avoid caching huge messages */ -#define MAX_MESSAGE_SIZE_TO_CACHE _DBUS_ONE_MEGABYTE +#define MAX_MESSAGE_SIZE_TO_CACHE 10 * _DBUS_ONE_KILOBYTE /** Avoid caching too many messages */ #define MAX_MESSAGE_CACHE_SIZE 5 |