[bind10-dev] [svn] commit: r1663 - in /branches/trac58/src/lib: cc/session.cc python/isc/cc/session.py

Jelte Jansen jelte at isc.org
Thu Apr 1 08:58:01 UTC 2010


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 04/01/2010 06:06 AM, zhanglikun wrote:
> Hi Jelte,
> 
>> Log:
>> b10-cmdctl sometimes tries to read a command from the command channel
>> twice at the same time (one when excpecting an answer to a command, and
>> one listening for commands in general)
> 
> I find one way to fix this problem: create separate cc session for different
> thread.
> 
> 1.  Create one cc session for listening for commands sent from cfgmgr.
> 2.  When cmdctl gets one command from bindctl, create a new cc session, and
> by using this new session, send the command to other modules, then wait for
> response. When get response, close the cc session. I think by this way, we
> can get the correct response for each command. 
>     

That's one of the other solutions that I filed under 'severe
restrictions on how to read messages from the channel' :)

It's certainly an approach we could take, the chance of shooting oneself
in the foot is just moved though, and we do end up with more tcp
connections that are not strictly necessary (though i do not think that
has any noticeable impact here, unless one really runs hundreds of
modules, or does hundreds of cc-command/reply things per second)

Jelte
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAku0YBkACgkQ4nZCKsdOncWTigCfRiaP1eTGu9YNJmPexYSXya+w
ivoAn2BELi97UIDFMnEJyoz+WMm0847b
=5up0
-----END PGP SIGNATURE-----



More information about the bind10-dev mailing list