Skip to content

[Bug]: code server goes to "Sleeping State" when closing the browser #5589

Closed as not planned
@ky1emoon

Description

@ky1emoon

Is there an existing issue for this?

  • I have searched the existing issues

OS/Web Information

  • Web Browser: Chrome
  • Local OS: Windows 11
  • Remote OS: Ubuntu 20.04
  • Remote Architecture: amd64
  • code-server --version: 4.7.0

Steps to Reproduce

  1. open code-server (I'm using k8s and run the pod with cpu limit N)
  2. run some heavy cpu-bound job in the terminal of code-server client (something like stress -c N)
  3. close the browser
  4. code-server (parent pid) and child processes including cpu-bound job go to sleeping state occassionally.

Expected

The server should be in a running state regardless of client connection

Actual

The code-server process should be in a running state but occasionally goes to a sleeping state.
This leads to other terminal child processes also going to a sleeping state.

Logs

image

Screenshot/Video

image

Does this issue happen in VS Code or GitHub Codespaces?

  • I cannot reproduce this in VS Code.
  • I cannot reproduce this in GitHub Codespaces.

Are you accessing code-server over HTTPS?

  • I am using HTTPS.

Notes

I wonder if this is expected behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    upstream:vscodeNeeds to be fixed upstream in VSCode

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions