Perhaps the reason he was so hostile about your boyfriends surprise visit, is because:
A) He felt the sanctity of his home was invaded. Everyones homes should be their safe places, but with the boyfriend showing up your husband doesn't feel emotionally safe in your home anymore, since someone...