advance_cursor
advance_cursor(cursor, sr->sr_req_len - end, false);
advance_cursor(cursor, eoff - sr->sr_pos, true);