summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Burton <ross@openedhand.com>2005-07-27 19:38:41 +0000
committerRoss Burton <ross@openedhand.com>2005-07-27 19:38:41 +0000
commitc9c16dd08766d3ad25a362ae335e64f1ca907373 (patch)
treee503e33df2d05965017ce5dbd62cc544be6dcb48
parent915100a3765cdb60d04d314cf79a2687b6c5b5cb (diff)
Reduce size of message cache
-rw-r--r--ChangeLog5
-rw-r--r--dbus/dbus-message.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 5d02b85a..805c16a1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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