Sorry to read about your experience, but as others have said, if you have dogs you need to keep them inside your property.
Despite popular belief, it is not only grumpy old expats that moan about soi dogs. There are many Thais who detest them, and then there are those who will tolerate them, but only so long as they are not being directly affected by them.
In fact, reading this thread has just made me realize something. At the end of our little dirt road we ended up with a pack of around ten to fifteen dogs. These were drawn to the area thanks to a new restaurant opening, and left over food being put in the street. There were also a few other people who would actually drive to the area to drop of food, not thinking at all about the people who have to put up with the dogs. Now it's just dawned on me that we no longer have dogs here anymore. Sadly, I am inclined to think that my own in-laws might be responsible for their disappearance. The dogs had killed I don't know how many chickens, and in Thailand, chickens are generally more valued than pesky street dogs.
In short, soi dogs sign their own death warrant if:
1. They kill any type of livestock
2. They threaten or scare locals who frequently need to pass through their territory
3. If the chase motorcycles and cause someone to come off
If we put emotions aside, at we look at reality, then we need to acknowledge the fact that Thais don't have many options available to them when it comes to stray dogs that pose a risk to their safety. I mean, it's not as if they can call a number and then somebody comes around to remove the dog or dogs. Yes you can maybe go dump them at a temple, but how many people are willing to try and capture stray dogs in order to do this, and even if they do, if the dogs aren't accepted by the pack/s at a temple, they simply end up back on the street.
I honestly don't for a minute believe Thais go around poisoning dogs just for a laugh. They do it out of frustration and as a last resort.

Don't try to impress me with your manner of dress cos a monkey himself is a monkey no less - cold fact