Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(305)

Issue 3836042: Create an instance of GDBusProxy with G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES flag. (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
13 years, 6 months ago by Yusuke Sato
Modified:
13 years, 6 months ago
Reviewers:
shawn.p.huang, Peng Huang
Base URL:
git@github.com:ibus/ibus.git@master
Visibility:
Public.

Description

Create an instance of GDBusProxy with G_DBUS_PROXY_FLAGS_DO_NOT_LOAD_PROPERTIES flag. Without the flag, on_name_owner_changed() in glib-2.26.x/gio/gdbusproxy.c might invoke a remote method named GetAll in org.freedesktop.DBus.Properties interface, but the method is not implemented in ibus-daemon. Since ibus-daemon ignores the method call, the caller, which is UI thread of Chrome on Chromium OS, will block for 25 seconds (i.e. the default timeout of GDBus) waiting for a reply. BUG=none TEST=manually

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -2 lines) Patch
M src/ibusconfig.c View 1 chunk +1 line, -1 line 0 comments Download
M src/ibusinputcontext.c View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 3
Yusuke Sato
13 years, 6 months ago (2010-12-26 17:08:13 UTC) #1
Peng
LGTM. BTW, I think if remote objects do not support properties related methods, they should ...
13 years, 6 months ago (2010-12-26 17:44:01 UTC) #2
Yusuke Sato
13 years, 6 months ago (2010-12-26 22:33:50 UTC) #3
thx. FYI, currently the GetAll method call is filtered by
g_return_val_if_reached(NULL) call here:
https://github.com/ibus/ibus/blob/master/bus/dbusimpl.c#L887


On 2010/12/26 17:44:01, Shawn.P.Huang wrote:
> LGTM. BTW, I think if remote objects do not support properties related
methods,
> they should reply an error instead doing nothing. I will check it.
> 
> On 2010/12/26 17:08:13, Yusuke Sato wrote:
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b