Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-24921

QDBusServer is not working properly for more than one connection

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.0.0 Beta 2
    • 4.8.0, 5.0.0
    • D-Bus
    • None
    • a386194f9952683c0be5028f2b7f0ce9617fe404

    Description

      From the DBus documentation: A DBusServer represents a server that other applications can connect to. Each connection from another application is represented by a DBusConnection.

      QDBusServer only works properly with one connection. For multiple connections basically only the last one is used.

      Every QDBusServer has currently only one QDBusConnectionPrivate instance assigned. In qDBusNewConnection (via QDBusConnectionPrivate::setPeer) the old DBusConnection is overridden (and leaked) by the new connected one.

      I think there should be a QDBusConnectionPrivate instance for every DBusConnection connected to the server.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            thiago Thiago Macieira
            jpetersen Jan Arne Petersen (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes