Commit 939eedf9 authored by Jelte Jansen's avatar Jelte Jansen
Browse files

ok i see why the nonnonblock didn't work, broke it yesterday, missed a return statement

removed while loop again and fixed nonnonblock


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@1447 e5f2f494-b856-4b98-b285-d166d9295462
parent 81f707ea
......@@ -299,8 +299,6 @@ class CommandControl():
seq = self.cc.group_sendmsg(msg, module_name)
#TODO, it may be blocked, msqg need to add a new interface waiting in timeout.
answer, env = self.cc.group_recvmsg(False, seq)
while answer == None:
answer, env = self.cc.group_recvmsg(False, seq)
if answer:
try:
rcode, arg = isc.config.ccsession.parse_answer(answer)
......
......@@ -101,7 +101,7 @@ class Session:
return env, msg
else:
self._queue.append((env,msg))
self.recvmsg(nonblock, seq)
return self.recvmsg(nonblock, seq)
else:
return isc.cc.message.from_wire(data[2:header_length+2]), None
return None, None
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment