|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #66504 Add getTimeout/setTimeout methods to Dbus class
Submitted: 2014-01-17 07:25 UTC Modified: 2017-10-24 08:08 UTC
Avg. Score:3.8 ± 1.7
Reproduced:8 of 10 (80.0%)
Same Version:8 (100.0%)
Same OS:6 (75.0%)
From: pavlonion at gmail dot com Assigned:
Status: Open Package: DBus (PECL)
PHP Version: Irrelevant OS: Linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: pavlonion at gmail dot com
New email:
PHP Version: OS:


 [2014-01-17 07:25 UTC] pavlonion at gmail dot com
By default D-Bus method call is limited by 25 seconds.
I believe, that it would be useful to have an ability to set and get timeout parameter for D-Bus calls.

Test script:
$dbus = new Dbus(Dbus::BUS_SYSTEM);

// If this method would exist
if (method_exists($dbus, 'setTimeout')) {
   // This is the way to set infinite timeout.

$proxy = $dbus->createProxy('net.php.bugs.service', '/obj', 'iface');

$timeout = $dbus->getTimeout();
echo 'Max call time is '
   .($timeout == Dbus::TIMEOUT_INFINITE? 'infinite': "$timeout seconds");


Expected result:
Max call time is infinite

Actual result:
As a result PHP-developers, who use Dbus, will be able to set required time for Dbus methods call. That is specially useful, when one deals with long net or database interactions.


dbus-timeout.diff (last revision 2014-01-17 07:29 UTC by pavlonion at gmail dot com)

Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2014-01-17 07:40 UTC] pavlonion at gmail dot com
Sorry, I misunderstood "Actual result" division...

Actual result:
Max call time is 25 seconds
 [2014-01-18 08:01 UTC]
-Assigned To: +Assigned To: derick
 [2014-01-18 08:01 UTC]
Assigning to derick, because he's a busy guy and probably hasn't seen this yet :)
 [2017-10-24 08:08 UTC]
-Status: Assigned +Status: Open -Assigned To: derick +Assigned To:
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun May 09 23:01:26 2021 UTC