Bug 26279 - pool connection managers for robustness/scalability
Summary: pool connection managers for robustness/scalability
Status: NEW
Alias: None
Product: Telepathy
Classification: Unclassified
Component: fargo (show other bugs)
Version: git master
Hardware: Other All
: high enhancement
Assignee: Simon McVittie
QA Contact: David Laban
URL:
Whiteboard: milestone4.9 est=5h
Keywords:
Depends on:
Blocks:
 
Reported: 2010-01-27 09:52 UTC by Simon McVittie
Modified: 2010-01-28 10:34 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Simon McVittie 2010-01-27 09:52:14 UTC
Related to Bug #26099, we may need to limit the number of connections per CM instance to avoid any leaks in tpsip. We should eventually do this anyway to limit the effect of a tpsip instance crashing. Estimate 5 hours, assuming we can use Sjoerd's code from another project to spawn dbus-daemons.
Comment 1 Simon McVittie 2010-01-28 10:31:33 UTC
I'll take this bit.
Comment 2 Simon McVittie 2010-01-28 10:34:51 UTC
Sjoerd contributes:

#!/usr/bin/env python

import subprocess
import atexit
import os
import signal
import dbus

def spawnbus():
    process = subprocess.Popen (
        [ "dbus-daemon", "--session", "--nofork", "--print-address" ],
        stdout = subprocess.PIPE,
    )
    atexit.register (lambda p: os.kill (p.pid, signal.SIGKILL), process)

    address = process.stdout.readline().rstrip()
    return dbus.bus.BusConnection (address)


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.