~rainct/zeitgeist/least-popular-959615

Viewing all changes in revision 452.

  • Committer: Siegfried-Angel Gevatter Pujals
  • Date: 2012-03-26 16:45:28 UTC
  • mfrom: (449.1.2 bluebird)
  • Revision ID: siegfried@gevatter.com-20120326164528-2dtt2txuvwm3isaa
Merge lp:~rainct/zeitgeist/limit-dbus-mb

Set a limit on the result size FindEvents and GetEvents may return.

D-Bus has a hard limit of 1GB of data per call and Gio limits us to
100MB. We need to ensure we don't go over this limit, since otherwise
Zeitgeist will crash. Additionally, ransfers of such size take several
minutes and are clear misuse of the Zeitgeist engine.

Therefore, this commit limit the result of FindEvents and GetEvents calls
to not more than 4MiB of data (2MiB would probably be enough, but let's
leave some margin). Queries requesting more than this limit will get
an exception.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: