|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
Patchesdbus-timeout.diff (last revision 2014-01-17 07:29 UTC by pavlonion at gmail dot com)Pull RequestsHistoryAllCommentsChangesGit/SVN commits
[2014-01-17 07:40 UTC] pavlonion at gmail dot com
[2014-01-18 08:01 UTC] krakjoe@php.net
-Assigned To:
+Assigned To: derick
[2014-01-18 08:01 UTC] krakjoe@php.net
[2017-10-24 08:08 UTC] kalle@php.net
-Status: Assigned
+Status: Open
-Assigned To: derick
+Assigned To:
[2023-03-01 10:01 UTC] croverwnorene8 at googlemail dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 08:00:02 2025 UTC |
Description: ------------ 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. $dbus->setTimeout(Dbus::TIMEOUT_INFINITE); } $proxy = $dbus->createProxy('net.php.bugs.service', '/obj', 'iface'); $timeout = $dbus->getTimeout(); echo 'Max call time is ' .($timeout == Dbus::TIMEOUT_INFINITE? 'infinite': "$timeout seconds"); $proxy->someLongMethod(); 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.