treatment with certain antibiotics such as erythromycin can shorten the infection period