question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ECONNRESET without any retries after

See original GitHub issue

Apparently thelounge has a hardcoded reconnect configuration that has too few retries which span over less than 3 minutes. This means that a simple router restart or other networking glitch could render the application offline until a human performs a manual reconned.

This happened to me twine in a week, usually it was not happening but based on what I see on the log I think that the app was not able to retry enough before giving up. I was not able to see any options configurable in the UI around the retry logic.

Even more interesting is the fact that after the attempt no4 it succeeded establishing a connection but received a ECONNRESET and gave up.

If the retry behavior is configurable in another place hidden from the UI, it should at least be mentioned in the settings window, those for connection and/or general ones.

Version: 4.2.0 (container)


07:35 Ping timeout, disconnecting…
07:35 Disconnected from the network. Reconnecting in 5 seconds… (Attempt 1)
07:35 *** Connection closed unexpectedly: Error: getaddrinfo EAI_AGAIN chat.freenode.net
07:35 Disconnected from the network. Reconnecting in 8 seconds… (Attempt 2)
07:36 *** Connection closed unexpectedly: Error: getaddrinfo EAI_AGAIN chat.freenode.net
07:36 Disconnected from the network. Reconnecting in 6 seconds… (Attempt 3)
07:36 *** Connection closed unexpectedly: Error: getaddrinfo EAI_AGAIN chat.freenode.net
07:36 Disconnected from the network. Reconnecting in 11 seconds… (Attempt 4)
07:36 Connected to the network.
07:36 -card.freenode.net- *** Looking up your hostname...
07:36 -card.freenode.net- *** Checking Ident
07:36 -card.freenode.net- *** Found your hostname
07:38 *** Connection closed unexpectedly: Error: read ECONNRESET
07:38 Disconnected from the network, and will not reconnect. Use /connect to reconnect again.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
xPawcommented, Nov 18, 2020

irc-framework handles the reconnection.

See https://github.com/kiwiirc/irc-framework/issues/211

0reactions
nanayacommented, Nov 4, 2022

the thing is they seem to be convinced it’s as intended (and I asked for confirmation on this but no response so far) and thus making pr might be pointless.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't install anything with npm ECONNRESET without proxy
The best discussion of the ECONNRESET issue is in this npm registry ... After that i was able to install the expo-cli package...
Read more >
cloud storage frequently throws ECONNRESET, read or write ...
I have implemented work-arounds by using npm:promise-retry to call the storage functions again when they fail. ... This alleviates the problem for me...
Read more >
Return code ECONNRESET for TCP/IP - IBM
Depending upon the platform or platforms your enterprise uses, you receive the following return code when the connection is reset by peer (ECONNRESET):....
Read more >
Download Build Artifacts get error: ECONNRESET
Download Build Artifacts get error: ECONNRESET ... build artifacts through a relase pipeline I am getting the following: ... Fixed with no extra...
Read more >
Addressing Networking Errors in a Microservice Based System
Resolving socket hang up and ECONNRESET errors in NodeJS ... In other words, if a socket has no further requests after 5 seconds...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found