batch/unbatched mode for long-poll