When I was living alone, fairly lonely and with no-one to talk to outside work, a good friend dropped me a quiet hint that I tended to monopolise conversation talking too long and too much about my own interests when I was in company.
I was genuinely horrified, as I had not realised I was doing this. Hurt too, yes, but I did even in my initial hurt acknowledge the justice of her remarks.
Since then I have tried very hard to ask those I am talking to about their interests, opinions, or even just how their day is going. I hope and trust I no longer monopolize conversations!
If friends or DH start telling me something I have already heard a good many times, I sometimes say, "Yes, you have mentioned that before. Have there been any changes?" or whatever might be appropriate.
Obviously, if they are re-telling something that happened thirty years ago, there won't have been changes, so sometimes I would say, " that was a long time ago, surely, what brought it back to mind? "After all they might be worried that the situation was going to repeat itself.
I think many people, especially those living alone, tend to forget that they have told us something, so I see nothing wrong in gently reminding them that yes, you have told me about that.