[CursorIterator]If a cursor is provided, use it.
Added connection timeout.