[bind10-dev] Error: unexpected answer from ConfigManager
Jelte Jansen
jelte at isc.org
Wed Feb 24 17:52:12 UTC 2010
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 02/24/2010 04:41 PM, Jeremy C. Reed wrote:
>
> After an update I went from two "unexpected answer" to only one:
>
> Error: unexpected answer from ConfigManager
> {'specification_update': ['Auth', [{'item_name': 'default_name',
> 'item_optional': False, 'item_default': 'Hello, world!', 'item_type':
> 'string'}, {'item_name': 'zone_list', 'item_optional': False,
> 'list_item_spec': {'item_name': 'zone_name', 'item_optional': False,
> 'item_default': '', 'item_type': 'string'}, 'item_default': [],
> 'item_type': 'list'}]]}
hmm, so what seems to happen is an asynchronicity problem;
cmdctl starts handling a message from the queue, during which it needs
to send a command, and it expects an answer back. But before that
command is sent another message arrived in the queue. The code it uses
for get the answer is the same (group_recvmsg()), so it'll get the
second message, instead of the answer which gets added to the end.
Michael? Is there a specific way it can do
'get-the-answer-that-was-created-with-group_reply()' or should cmdctl
(and other modules, for that matter) hold an internal queue of
non-answer messages that it needs to handle?
Jelte
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkuFZ0wACgkQ4nZCKsdOncVEiACfU6b9Yjp70O/3Bid0h8YKu4MI
WGcAnR8k6RaPBwocJ4CLbvtBOHz8bWXx
=ZDB8
-----END PGP SIGNATURE-----
More information about the bind10-dev
mailing list