Correct way to prevent the infinite loop.

Previous "fix" was simply reverting the fix to attempt to always
send up to WINDOW_SIZE.