-
Notifications
You must be signed in to change notification settings - Fork 5.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unix socket always be deleted after 3 hours when client disconnect #7084
Comments
Are you sure the socket is deleted? That socket should be unrelated to the web socket in the console messages (the three hour one). The timeout is one specified by VS Code, not us, but we could patch it if we really need to. From what I understand, it is really just meant to reconnect when there is a blip in the network. Reloading the page should result in a new connection, but is that not working either? |
record.mp4@code-asher Thanks for your reply and I’m pretty sure the socket file is gone |
Yikes, that definitely seems like a bug. |
Supposedly, the only time we delete the socket is when code-server is first started. Is it possible a second instance of code-server was ran that deleted the socket? Although, not sure that makes sense because then we should still see the socket from the second instance. I do not see that we delete the socket anywhere else though. |
I don't know if it's possible. I just installed code-server via aur and ran it with systemctl. I personally prefer that it's unlikely. And I checked all my crontab script to ensure there is no script which will delete the socket file It's so weird. Maybe I should write a script to keep checking it the socket file is there and try to find the precise time the socket file is deleted |
That is definitely strange. If you are able to debug more that would be awesome. I can try running with a socket next week and see if I can reproduce. |
Is there an existing issue for this?
OS/Web Information
code-server --version
: 4.95.2Steps to Reproduce
logs below:
You will never reconnect to code-server because the socket file is delete.
Expected
Never delete the socket file unless code-server is stopped
Actual
It deleted!
Logs
Screenshot/Video
No response
Does this bug reproduce in native VS Code?
This cannot be tested in native VS Code
Does this bug reproduce in GitHub Codespaces?
I did not test GitHub Codespaces
Are you accessing code-server over a secure context?
Notes
my nginx config:
And systemctl edit code-server.service:
And the config.yaml
The text was updated successfully, but these errors were encountered: