diff options
author | Olle Lundberg <geek@nerd.sh> | 2014-08-15 12:23:02 +0200 |
---|---|---|
committer | Olle Lundberg <geek@nerd.sh> | 2014-08-15 21:14:33 +0200 |
commit | 74bd98fcf5cdd1fa63e5caf085e5b8fdafb0cb4e (patch) | |
tree | 7ca447638095d661cacbd88580ea2861ea1f77c8 /tests/loop.py | |
parent | 6fe52ccac45f527ced2d4dc3f2d4911f9db7a396 (diff) |
Let packetizer handle 0-length sends from channel.
If the channel is closed the send method returs a response length
of 0. This is not handled correctly by the packetizer and puts it
in an infinite loop. (Fixes #156 for real :-)
We make sure we don't do more than 10 iteration on a 0 length respose,
but raise an EOFError.
Diffstat (limited to 'tests/loop.py')
0 files changed, 0 insertions, 0 deletions