Memfd: fix big messages receiving.
authorMichal <m.eljasiewic@samsung.com>
Mon, 12 Aug 2013 13:24:32 +0000 (15:24 +0200)
committerMichal <m.eljasiewic@samsung.com>
Mon, 12 Aug 2013 13:24:32 +0000 (15:24 +0200)
Memory buffer needs to be bigger

Change-Id: Ibb19986c267a7e80bcbfe47c74f270e7acd47ea2

dbus/dbus-transport-kdbus.c

index dd8a722..bc8e7f7 100644 (file)
@@ -2219,7 +2219,7 @@ _dbus_transport_new_for_socket_kdbus (int fd,
   socket_transport->message_bytes_written = 0;
 
   /* These values should probably be tunable or something. */
-  socket_transport->max_bytes_read_per_iteration = RECEIVE_POOL_SIZE;
+  socket_transport->max_bytes_read_per_iteration = DBUS_MAXIMUM_MESSAGE_LENGTH;
   socket_transport->max_bytes_written_per_iteration = DBUS_MAXIMUM_MESSAGE_LENGTH;
 
   socket_transport->kdbus_mmap_ptr = NULL;