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