Skip to content

Heartbeat always gets touched even when no active sockets and browser closed #1795

Closed
@lethevimlet

Description

@lethevimlet
  • Using docker official image codercom/code-server:latest
  • code-server --version: 3.4.1

.local/share/code-server/heartbeat
Always get's touched every minute, this happens after the first page load even if there are no active socket connections or browser tabs and never stops.

Having a bogus heartbeat prevents the possibility of shutting containers on AFK clients and you can't rely on a docker container being idle since it might be running a background process like a server or so.

In order to reproduce this issue, just

  1. Run a docker container of code-server, you can do it like on the README.md
  2. Login to code-server with your favorite browser (e.g. Chrome)
  3. Close browser
  4. Run docker exec -it <container_name> bash
  5. Watch -n 1 "ls -l .local/share/code-server/heartbeat"

You will see heartbeat file never stops getting touched.
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions