GNOME Bugzilla – Bug 736449
search-provider: quit sooner
Last modified: 2014-09-11 17:19:14 UTC
This doesn't matter very much, but one minute is longer than other search providers hang around for. I think most are using a 10s timeout.
Created attachment 285877 [details] [review] search-provider: quit sooner One minute is a little long for us to hang around. Ten seconds is more typical.
(In reply to comment #0) > This doesn't matter very much, but one minute is longer than other search > providers hang around for. I think most are using a 10s timeout. Citation needed.
Boxes, Contacts, and nautilus all disappear a couple seconds after my search. Weather and seahorse both hang around for about a minute, so actually I guess we just have two different camps of search provider timeouts. Epiphany (fixed just now) and gnote (bug #736472) seem to hang around forever.
All search providers I wrote have 1 minute timeout, yes. This is to make sure that the service doesn't disappear between a GetInitialResultSet and a GetSubsearchResultSet. Also it allows to cache some info in memory, which makes the second search a lot faster. I'm not sure the memory saving from using 10s instead of 1 minute is worth here: if you search often enough that 1 minute becomes significant, then you would be continously reloading the daemon from disk.