My Twitch Bot seems to receive error code: WSAECONNRESET after 5mins~

So, I’ve continued investigating this and noticed in a a more active channel I was not getting this issue. I am currently responding to PING’s sent from the other side, but I guess that’s not frequent enough to keep the connection alive.

I decreased my timeout time from 5 minutes to 1 minute, and that seems to have fixed the problem, as I’d have stay connected than detect a disconnect and have to reconnect.

So if there’s no issues/repercussions with pinging every minute, I’ll just continue doing that then.

Thanks for the response.

To add to this, it does seem strange that my recv() call was hanging and not picking up the connection was dropped like the send() call did. May be something to investigate, but at least I have something that works now.