The solution - never be the slowest in the group!
I got bitten on a bike before, we have lots of aggressive stray dogs here. Even running routes have to be carefully planned to avoid the dogs.
I said "when in Rome" to signal distaste at the idea, for whatever that's worth. On the other hand, if bicycling leftists armed themselves and started blasting away every car and dog that made them feel threatened, it might move the needle on gun rights in a way that right-wing shooters fail to.
And, I've had several dogs escape their fences. They aren't just noisy.
I have a pistol and was thinking about carrying it but that means every time i take my dogs for a walk i have to get it out of the safe and put it back in the safe. I have kids so can't just hang a holster with the leashes. Too much hassle and I know i'll eventually stop taking it with me. What i ended up doing was getting bear spray that can attach to the leashes. Now I can't forget to take protection with me when taking the dogs out because it's physically attached to the leash.
edit: this happened in Dallas TX
For when you need to deliver a really, really important message.
https://www.kuow.org/stories/cougar-attack-washington-state-...
Pepper spray, knife etc are illegal here. I carry air horn for quick deployment, and petards (very small explosives). Saved my ass twice! Once I was surrounded by pack of four large dogs!
In a sense it probably made me stronger but I can't say I build a friendship and a mutual sense of confidence with dogs.
She's a 90 lbs Mastiff/St Bernard/Lab cross. It's not like she's worried about being crushed or eaten. She could probably eat me.
Or maybe she doesn't realize she's big. I don't know.
But many bad behaviours are pretty easy to train out of most dogs (eg barking at passer-bys). Dogs are easy to train. Too many lazy owners blame their "nature" or "that's just how they are" as if they can't do anything.
Could probably go for pepper spray nowadays.
So its not cycling then its a stray dog thing :)