Bug 26279

Summary: pool connection managers for robustness/scalability
Product: Telepathy Reporter: Simon McVittie <smcv>
Component: fargoAssignee: Simon McVittie <smcv>
Status: NEW --- QA Contact: David Laban <david.laban>
Severity: enhancement    
Priority: high    
Version: git master   
Hardware: Other   
OS: All   
Whiteboard: milestone4.9 est=5h
i915 platform: i915 features:

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.