summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichal 'vorner' Vaner <michal.vaner@nic.cz>2013-02-18 11:23:08 +0100
committerMichal 'vorner' Vaner <michal.vaner@nic.cz>2013-02-18 11:30:56 +0100
commitc8870e86d867789bf2e8dedf6f5e960dc47faaee (patch)
tree5485a9dc253ac0619200844da059e8a617326d7f /src
parent[2676] Note why XfrIn is not converted (diff)
downloadkea-c8870e86d867789bf2e8dedf6f5e960dc47faaee.tar.xz
kea-c8870e86d867789bf2e8dedf6f5e960dc47faaee.zip
[2676] Note why Cmdctl is not converted.
Similar to previous commit, there's a hack in cmdctl that doesn't allow it now.
Diffstat (limited to 'src')
-rwxr-xr-xsrc/bin/cmdctl/cmdctl.py.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/bin/cmdctl/cmdctl.py.in b/src/bin/cmdctl/cmdctl.py.in
index 15a41ecc6e..646801695e 100755
--- a/src/bin/cmdctl/cmdctl.py.in
+++ b/src/bin/cmdctl/cmdctl.py.in
@@ -429,8 +429,13 @@ class CommandControl():
# Process the command sent to cmdctl directly.
answer = self.command_handler(command_name, params)
else:
+ # FIXME: Due to the fact that we use a separate session
+ # from the module one (due to threads and blocking), and
+ # because the plain cc session does not have the high-level
+ # rpc-call method, we use the low-level way and create the
+ # command ourself.
msg = ccsession.create_command(command_name, params)
- seq = self._cc.group_sendmsg(msg, module_name)
+ seq = self._cc.group_sendmsg(msg, module_name, want_answer=True)
logger.debug(DBG_CMDCTL_MESSAGING, CMDCTL_COMMAND_SENT,
command_name, module_name)
#TODO, it may be blocked, msqg need to add a new interface waiting in timeout.