]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[2353] Explain why we throw after 15 recv()s, in a comment
authorMukund Sivaraman <muks@isc.org>
Wed, 5 Dec 2012 07:56:29 +0000 (13:26 +0530)
committerMukund Sivaraman <muks@isc.org>
Wed, 5 Dec 2012 07:56:32 +0000 (13:26 +0530)
src/bin/bind10/tests/bind10_test.py.in

index dd1fd24dca0cdfea95568ef4f844984ee3ec7f3b..f6fa595a63c7d4dedbc1deb33d213fcbb3938357 100644 (file)
@@ -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):