[bind10-dev] ccsession api
Michal 'vorner' Vaner
michal.vaner at nic.cz
Sun Sep 26 15:26:18 UTC 2010
Hello
I found an incompatibility between real code and tests. Is there a documentation
to know what is correct regarding the cc API? The header in code is:
def group_recvmsg(self, nonblock = True, seq = None):
But in the fake session, it is:
def group_recvmsg(self, blocking, seq = None):
What I do not like is, the blocking/nonblock are negated against each other.
Some code acts as it is the nonblock, some looks like it expects the blocking
(passes False and expects to get None, None ‒ which you never get with blocking
read).
I need this, because I want the fake session to throw something like „Would
block forever“ if there is a blocking read without timeout and no message, but
If I just do that, some tests fail and I suspect there's code that relies on
wrong parameter there.
Does anybody know, what is the correct parameter/behaviour?
Thank you
Have a nice day
--
You can't have everything... where would you put it?
-- Steven Wright
Michal 'vorner' Vaner
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: not available
URL: <https://lists.isc.org/pipermail/bind10-dev/attachments/20100926/1c3f5185/attachment.bin>
More information about the bind10-dev
mailing list