martynsmith / node-irc

NodeJS IRC client library
GNU General Public License v3.0
1.32k stars 425 forks source link

Receives PONG after 15-20 PINGS #528

Closed Kongzted closed 6 years ago

Kongzted commented 6 years ago

I hope some of you can help me. When i try to connect to a server i can send NICK, USER, PASS, WHOIS, MODE and JOIN just fine, but i need to ping like 15-20 times, before i receive a PONG.

26 Dec 05:53:14 - SEND: PASS xxxxxxxxxxxxxxx 26 Dec 05:53:14 - Sending irc NICK/USER 26 Dec 05:53:14 - SEND: NICK xxxxxxxxxxxxxxx 26 Dec 05:53:14 - SEND: USER xxxxxxxxxxxxxxx 8 * xxxxxxxxxxxxxxx 26 Dec 05:53:14 - SEND: JOIN #xxxxxxxxxxxxxxx 26 Dec 05:53:14 - SEND: WHOIS xxxxxxxxxxxxxxx 26 Dec 05:53:14 - SEND: MODE #xxxxxxxxxxxxxxx CyclingPingTimer 0: server silent for too long, let's send a PING 26 Dec 05:53:43 - SEND: PING 1 CyclingPingTimer 0: server silent for too long, let's send a PING 26 Dec 05:53:58 - SEND: PING 2 CyclingPingTimer 0: server silent for too long, let's send a PING 26 Dec 05:54:13 - SEND: PING 3 CyclingPingTimer 0: server silent for too long, let's send a PING 26 Dec 05:54:29 - SEND: PING 4 CyclingPingTimer 0: server silent for too long, let's send a PING 26 Dec 05:54:44 - SEND: PING 5 CyclingPingTimer 0: server silent for too long, let's send a PING 26 Dec 05:54:59 - SEND: PING 6 CyclingPingTimer 0: server silent for too long, let's send a PING 26 Dec 05:55:14 - SEND: PING 7 CyclingPingTimer 0: server silent for too long, let's send a PING 26 Dec 05:55:29 - SEND: PING 8 CyclingPingTimer 0: server silent for too long, let's send a PING 26 Dec 05:55:45 - SEND: PING 9 CyclingPingTimer 0: server silent for too long, let's send a PING 26 Dec 05:56:00 - SEND: PING 10 CyclingPingTimer 0: server silent for too long, let's send a PING 26 Dec 05:56:15 - SEND: PING 11 CyclingPingTimer 0: server silent for too long, let's send a PING 26 Dec 05:56:30 - SEND: PING 12 CyclingPingTimer 0: server silent for too long, let's send a PING 26 Dec 05:56:45 - SEND: PING 13 CyclingPingTimer 0: server silent for too long, let's send a PING 26 Dec 05:57:00 - SEND: PING 14 CyclingPingTimer 0: server silent for too long, let's send a PING 26 Dec 05:57:16 - SEND: PING 15 CyclingPingTimer 0: server silent for too long, let's send a PING 26 Dec 05:57:31 - SEND: PING 16 CyclingPingTimer 0: server silent for too long, let's send a PING 26 Dec 05:57:46 - SEND: PING 17 26 Dec 05:57:56 - SEND: PONG **

I'm pretty new to Node.js, so i'm just asking: Is this normal or is it just how it works?