Repository navigation
Handle slow networks more gracefully #2407
Copy link
Copy link
Closed as not planned
Labels
bugSomething isn't workingSomething isn't workingupstream:vscodeNeeds to be fixed upstream in VSCodeNeeds to be fixed upstream in VSCode
Milestone
Description
- Web Browser: Chrome 87.0.4280.88
- Local OS: Windows 10 build 1709 16299.1087
- Remote OS: CentOS 8.2.2004
- Remote Architecture: x86_64
code-server --version: 3.7.4 11f5378
[Problem]
Extension does not activate, even after “active extension...” showed up at status bar. This include git extension shipped with vscode, which cause source control panel says “No source control providers registered” and “git.path” setting grayed out.
[Log]
No content in code-server-stderr.log
code-server-stdout.log
[2020-12-05T07:43:31.503Z] info code-server 3.7.4 11f53784c58f68e7f4c5b3b8dae9407caa41725b
[2020-12-05T07:43:31.504Z] info Using user-data-dir ~/.local/share/code-server
[2020-12-05T07:43:31.512Z] info Using config file ~/.config/code-server/config.yaml
[2020-12-05T07:43:31.512Z] info HTTP server listening on http://127.0.0.1:8080
[2020-12-05T07:43:31.512Z] info - Authentication is enabled
[2020-12-05T07:43:31.512Z] info - Using password from ~/.config/code-server/config.yaml
[2020-12-05T07:43:31.512Z] info - Not serving HTTPS
[2020-12-05T07:43:38.334Z] debug forking vs code...
[2020-12-05T07:43:38.536Z] debug setting up vs code...
debug vscode got message from code-server {"type":"init"}
debug vscode got message from code-server {"type":"socket"}
debug vscode New connection {"token":"dd205da5-c5fa-41cc-8576-de1f56b0b552"}
[2020-12-05T07:43:42.893Z] debug got latest version {"latest":"3.7.4"}
[2020-12-05T07:43:42.893Z] debug comparing versions {"current":"3.7.4","latest":"3.7.4"}
debug Creating terminal {"id":0,"terminals":0}
debug Resolved shell launch configuration {"id":0}
debug Resolved terminal environment {"id":0}
debug Created terminal {"id":0}
debug vscode got message from code-server {"type":"socket"}
debug vscode New connection {"token":"8b7f3062-ff75-4b27-a080-a0ccac3ce0a0"}
debug Terminal bound {"id":0}
debug Terminal replaying {"id":0}
debug vscode got message from code-server {"type":"socket"}
remoteagent.log
[2020-12-05 15:43:55.114] [remoteagent] [error] [File Watcher (chokidar)] Inotify limit reached (ENOSPC)
[2020-12-05 15:43:55.114] [remoteagent] [error] [File Watcher (chokidar)] Inotify limit reached (ENOSPC)
telemetry.log
[2020-12-05 15:43:38.579] [telemetry] [info] The below are logs for every telemetry event sent from VS Code once the log level is set to trace.
[2020-12-05 15:43:38.579] [telemetry] [info] ===========================================================
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't workingupstream:vscodeNeeds to be fixed upstream in VSCodeNeeds to be fixed upstream in VSCode
Activity
code-asher commentedon Dec 7, 2020
qian2501 commentedon Dec 8, 2020
Hi, I doubled checked in my browser, due to sec policy I will not be able to post them. But I saw something is stuck. There is a request using wss protocol keeps pending, that request has
type=Management, and there is another repeating wss request withtype=ExtensionHost, both of them have a 101 status code. And nginx log reveals the same.Oh, one more thing, it loaded once on my iPad with Safari, so it’s not a stable repeating issue any more, but issue probability is still very high.
nhooyr commentedon Dec 8, 2020
Might be related to #2388
qian2501 commentedon Dec 10, 2020
I found something more in nginx log.
The pending request:
The repeating request:
And a lot entry in error.log with something like this:
Basically every request have an entry like this.
Could this have something to do with privilege? I installed code-server using root while running it with another sudo-able user.
qian2501 commentedon Dec 11, 2020
Well, I have it loaded on my windows machine today. It’s getting confusing.
code-asher commentedon Jan 11, 2021
qian2501 commentedon Feb 19, 2021
Well, it is confirmed a network issue. By the time I submitted this issue I was on a biz trip in some less advanced city. LTE was not that good there. Everything works fine back home.
[-]Extension not loading[/-][+]Handle slow networks more gracefully[/+]imjakey commentedon Mar 6, 2021
I have the same issue, I have tried deploy in aliyun and qcloud,both of them have a fast ping,but the wss requests like


"/?type=Management&reconnectionToken=6d8536ff-9ad7-4ccf-be10-115919d8178d&reconnection=true&skipWebSocketFrames=false" timeout almost everytime,but everything works fine when it run on another host in my local area network。
SBBTD commentedon Aug 13, 2021
I have the same issue. 1Mbps
timeout 60 seconds
lettore commentedon Oct 27, 2021
I'm on satellite connection at sea and I have the same problem, it should be nice if it would be possible to manage degraded networks. Not always it's possible to connect to the server on a lan.
jsjoeio commentedon Oct 28, 2021
Probably one of the coolest comments I've seen on GitHub. I'm sure there's a good story there.
Anyways, yes, it would be nice! We have some other priorities but would love to improve this UX!
stale commentedon Apr 27, 2022
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no activity occurs in the next 5 days.
code-asher commentedon Jul 12, 2024
Unfortunately I believe this will need to be fixed upstream, unless we want to try patching their module loader.