Bug 11489 - timeout keyword not working
Summary: timeout keyword not working
Status: RESOLVED FIXED
Alias: None
Product: dbus
Classification: Unclassified
Component: python (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Simon McVittie
QA Contact: John (J5) Palmieri
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-06 12:56 UTC by Marco Pesenti Gritti
Modified: 2007-07-11 07:55 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Fix (1.19 KB, patch)
2007-07-06 13:29 UTC, Marco Pesenti Gritti
Details | Splinter Review

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.