You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Socket transport: "Connection refused" without host and port, and fast restarts #1944
Update:#1966 (in 0.30.0) catches the ConnectException of an attach and names the host and port: "Nothing listens on 127.0.0.1:6010 (Connection refused): …". The pause between restarts and the notice when the server is disabled are still open. (done in #1977 and #1985)
When attach times out, the message names host:port. When nothing listens there, the ConnectException goes up as is, so the LSP console and the notification only show java.net.ConnectException: Connection refused, without the host and port:
With nothing listening on the port, I got about 20 of these stack traces in a row: LanguageServerWrapper restarts up to MAX_NUMBER_OF_RESTART_ATTEMPTS = 20 times with no pause, each time something calls start(), and then disables the server. That's not new; a server that can't start over stdio does the same. But with attach, "not started yet" is a normal state, so it shows more often.
wait longer between restarts (e.g. 1 s, 2 s, 4 s … up to 30 s), and count failures within a time window instead of in total. VS Code's language client, for example, gives up after 5 crashes within 3 minutes and then says so, as the LSP specification suggests ("clients should be careful not to restart a crashing server endlessly"); (done in fix: pause between the restarts of a language server whose start failed #1985)
Seen in runIde with the attach transport and nothing listening on the port: about 20 stack traces in a row. The code references were checked against b4b23c2 by Claude Code.
Activity
fix: name the host and port of a socket connection that fails, and hi…
fix: socket transport errors and checks for 0.30.0 (#1966)
fix: connect to ::1 too without a host, and say when failed starts di…
fix: pause between the restarts of a language server whose start fail…
fix: listen on both loopback addresses for a language server which co…