We should check for timeout error chunks inside this loop and raise a suitable exception.