BIND 10 trac2353, updated. 609e5bf4005731160716d1d63d3eebf402a14f1d [2353] Explain why we throw after 15 recv()s, in a comment
BIND 10 source code commits
bind10-changes at lists.isc.org
Wed Dec 5 07:57:05 UTC 2012
The branch, trac2353 has been updated
via 609e5bf4005731160716d1d63d3eebf402a14f1d (commit)
from 71cf0a22ba08d32908a610b749e9aefe1c4dda1a (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit 609e5bf4005731160716d1d63d3eebf402a14f1d
Author: Mukund Sivaraman <muks at isc.org>
Date: Wed Dec 5 13:26:29 2012 +0530
[2353] Explain why we throw after 15 recv()s, in a comment
-----------------------------------------------------------------------
Summary of changes:
src/bin/bind10/tests/bind10_test.py.in | 2 ++
1 file changed, 2 insertions(+)
-----------------------------------------------------------------------
diff --git a/src/bin/bind10/tests/bind10_test.py.in b/src/bin/bind10/tests/bind10_test.py.in
index dd1fd24..f6fa595 100644
--- a/src/bin/bind10/tests/bind10_test.py.in
+++ b/src/bin/bind10/tests/bind10_test.py.in
@@ -1893,6 +1893,8 @@ class TestBossComponents(unittest.TestCase):
raise Exception('bufsize != 1')
if flags != socket.MSG_DONTWAIT:
raise Exception('flags != socket.MSG_DONTWAIT')
+ # after 15 recv()s, throw a socket.error with EAGAIN to
+ # get _socket_data() to save back what's been read.
if self.throw and self.i > 15:
raise socket.error(errno.EAGAIN, 'Try again')
if self.i >= len(self.buf):
More information about the bind10-changes
mailing list