Bug 11489

Summary: timeout keyword not working
Product: dbus Reporter: Marco Pesenti Gritti <mpgritti>
Component: pythonAssignee: Simon McVittie <smcv>
Status: RESOLVED FIXED QA Contact: John (J5) Palmieri <johnp>
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Fix

Description Marco Pesenti Gritti 2007-07-06 12:56:02 UTC
timeout_s in Connection_send_message_with_reply is always < 0, whatever value you pass to with the timeout keyword.
Comment 1 Marco Pesenti Gritti 2007-07-06 13:29:45 UTC
Created attachment 10609 [details] [review]
Fix

Looks like a type mismatch:

double timeout_s = -1.0;

but float in

    if (!PyArg_ParseTuple(args, "O|f:send_message_with_reply_and_block", &obj,
                          &timeout_s)) {
        return NULL;
    }
Comment 2 Simon McVittie 2007-07-11 07:55:17 UTC
Fixed in git, and the same fix for send_message_with_reply_and_block(). I'll release 0.82.1 soon, after I've checked for any other immediate bugs.

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.