IRC Connection reset by peer

In last few days i get disconnect wwithin few seconds after join a channel . Im using custom IRC and it worked for years.

PASS oauth:xxx
NICK mca64
USER 0 * :
CAP REQ :twitch.tv/membership
CAP REQ :twitch.tv/commands
JOIN #skryoo1004
001 mca64 :Welcome, GLHF!
002 mca64 :Your host is tmi.twitch.tv
*** 01:18:04 Połączono z #skryoo1004
003 mca64 :This server is rather new
004 mca64 :-
375 mca64 :-
372 mca64 :You are in a maze of twisty passages, all alike.
376 mca64 :>
CAP * ACK :twitch.tv/membership
CAP * ACK :twitch.tv/commands
JOIN #skryoo1004
*** 01:18:04 Dołączył: mca64
353 mca64 = #skryoo1004 :mca64
366 mca64 #skryoo1004 :End of /NAMES list
USERSTATE #skryoo1004
ROOMSTATE #skryoo1004
PRIVMSG #skryoo1004 :yeah i thought you can still do 5:3 in remastered
<01:18:07> trippylee: yeah i thought you can still do 5:3 in remastered
PRIVMSG #skryoo1004 :probably switched back to old graphics because this is a more serious game Kappa
<01:18:11> marisa46: probably switched back to old graphics because this is a more serious game Kappa
PRIVMSG #skryoo1004 :is this a TheClaude stream?
<01:18:13> langrisser: is this a TheClaude stream?

Please help

In general, CAP REQ should come first and they can be combined. USER is not required. You should wait for at least the 001 command before sending JOIN commands

< CAP REQ :twitch.tv/membership twitch.tv/commands
> :tmi.twitch.tv CAP * ACK :twitch.tv/membership twitch.tv/commands
< PASS oauth:token_here
< NICK username_here
> :tmi.twitch.tv 001 username_here :Welcome, GLHF!
  :tmi.twitch.tv 002 username_here :Your host is tmi.twitch.tv
  :tmi.twitch.tv 003 username_here :This server is rather new
  :tmi.twitch.tv 004 username_here :-
  :tmi.twitch.tv 375 username_here :-
  :tmi.twitch.tv 372 username_here :You are in a maze of twisty passages, all alike.
  :tmi.twitch.tv 376 username_here :>
> :tmi.twitch.tv GLOBALUSERSTATE
< JOIN #channel_name

Are you PING/PONG-ing and in the event Twitch is not sending a PING, in a nice time, are you proactively sending a PING and listening for the PONG?

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.