If those dogs had been attacking, they would have gotten you. Many dogs will run, make a load of racket, and put you on notice. Keeping a cool head will drastically reduce your chances of actually getting attacked, getting scared and freaking out will drastically increase those chances.