[Bug 23155] Connection: make handles survive until disconnection

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Fri Apr 9 15:30:46 CEST 2010


https://bugs.freedesktop.org/show_bug.cgi?id=23155

--- Comment #4 from Mikhail Zabaluev <mikhail.zabaluev at nokia.com> 2010-04-09 06:30:46 PDT ---
I'm not comfortable with the idea of tying resource management functionality
(handle lifetime management) with user-visible behavior (connection getting
disconnected). True, it makes everything a lot simpler and in typical usage
accumulation of unused handles is not expected to be a big problem. But still,
on long-lived connections immortal handles basically constitute a specified
memory leak, potentially bringing heap fragmentation and whatnot. In Maemo,
we'll spend days warding off our endurance testers :)

If letting the clients control the lifetime of handles is too painful, maybe
the right to garbage-collect handles, possibly after a suitably long time
period, should be given to the connection managers?

Caution, brainstorm-in-progress follows: in a future backwards-incompatible
Telepathy version, we could have a signal telling the clients that such and
such handles were invalidated. Any client binding that wants to retain handles
which it does not hold already should asynchronously reference or hold them,
and handle or expose the case of concurrent invalidation, which should never
happen in practice if CMs invalidate handles long time after last usage.

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.



More information about the telepathy-bugs mailing list