change RSYNC_CHOOSE_SEGMENT and RSYNC_SEND_SEGMENT to RSYNC_SENDSEGMENT