Good afternoon everyone,
I’ve posted this on StackOverflow, but I didn’t get any answer, but with some previous researches, I thought here I could get any information. I was wondering if there are incompatible TLS or SSL protocols incompatible with the Twitch IRC service. The most part of posts I saw with something similar as my issue, users said that protocol incompatibility could be the problem causing the IRC Bot to close against this services, but time before I didn’t have any issue of this kind, so I don’t know if it’s due my fault.
I can give more information, but if it’s possible, I’ld like to have an answer to the first question. If that’s not the issue, I wouldn’t be surprised if it’s due my fault. The error is caused randomly, but frequently, after sending a command:
[16:19:37 WARN]: Suppressed: java.net.SocketException: Connection reset by peer: socket write error [16:19:37 WARN]: at java.net.SocketOutputStream.socketWrite0(Native Method) [16:19:37 WARN]: at java.net.SocketOutputStream.socketWrite(Unknown Source) [16:19:37 WARN]: at java.net.SocketOutputStream.write(Unknown Source) [16:19:37 WARN]: at sun.security.ssl.SSLSocketOutputRecord.encodeAlert(Unknown Source) [16:19:37 WARN]: ... 41 more
Sometimes it takes like 2 tries, or 4, or 5, or who knows, recreating the Socket and connecting again, to connect successfully, but this issue is giving me some problems, as it’s affecting to some of the sent commands, so sometimes it doesn’t connects completely as there’s any command lost on the process. This issue closes the Socket, cause this I have to recreate the Socket all the time to reconnect.
Thank you in advance.