Most often your risk of infection is having your bag of water ruptured for too long, but many vaginal exams can increase your chance of infection as well. The longer you are in labor this risk would increase.