Flood of connection errors and many processes spawned
See original GitHub issueSometime in the last two weeks I started getting the error Connection to server is erroring. Shutting down server. in VSCode’s output window with varying frequency during coding sessions. Today while during a lag spike I took a look at the task manager and saw about 20 R terminal front-end processes each taking nearly 100mb of ram. When I killed each process I got an error in VSCode like this one:
[Error - 7:41:10 pm] Connection to server is erroring. Shutting down server.
[Error - 7:41:10 pm] Connection to server is erroring. Shutting down server.
[Error - 7:41:10 pm] Connection to server is erroring. Shutting down server.
[Error - 7:41:10 pm] Connection to server is erroring. Shutting down server.
[Error - 7:41:10 pm] Connection to server is erroring. Shutting down server.
[Error - 7:41:10 pm] Connection to server is erroring. Shutting down server.
R Language Server (18440) exited with exit code 1
I’m on Windows 10, using the latest versions of VSCode and the LSP extension, R 4.0.2, and languageserver 0.3.6
Issue Analytics
- State:
 - Created 3 years ago
 - Comments:28 (13 by maintainers)
 
Top Results From Across the Web
SYN flood DDoS attack - Cloudflare
SYN flood attacks work by exploiting the handshake process of a TCP connection. Under normal conditions, TCP connection exhibits three distinct processes in ......
Read more >Preventing a SYN flood denial of service attack response for ...
By accepting more connections at one time, the Windows SYN flood response can be avoided. The default is 200 connections.
Read more >12 Common Types of DDoS Attacks Explained - EasyDMARC
DDoS attack types include application layer, volumetric, and protocol-based exploits. Learn about their sub-categories here.
Read more >Denial-of-service attack - Wikipedia
Denial of service is typically accomplished by flooding the targeted machine or resource with superfluous requests in an attempt to overload systems and...
Read more >What is a TCP SYN Flood | DDoS Attack Glossary - Imperva
Essentially, with SYN flood DDoS, the offender sends TCP connection requests faster than the targeted machine can process them, causing network saturation.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

After giving this a bit of use it looks like this is resolved for me too. A reasonable number of processes are spawned up front and they actually close on their own now. Being able to use VSCode instead of RStudio is a big quality of life improvement, to say nothing of the competition to the RStudio monopoly being vital for the R ecosystem’s health.
As noted in this comment I’ve tried that without success unfortunately.