Skip to content
This repository was archived by the owner on Aug 29, 2024. It is now read-only.

Conversation

@mintuhouse
Copy link
Contributor

@mintuhouse mintuhouse commented Oct 27, 2023

In my machine, when I Ctrl+C (using falcon supervisor), supervisor.ipc remains and when I restart the server, I get EADDRINUSE

Found that File.exist?(@path) is returning false for such a file even though ls -al lists the file

Using FileUtils.safe_unlink instead of File.unlink to safely remove the file when it exists without any error

Types of Changes

  • Bug fix.

Contribution

In my machine, when I `Ctrl+C` (using falcon supervisor), supervisor.ipc remains and when I restart the server, I get EADDRINUSE

Found that `File.exist?(@path)` is returning false for such a file even though `ls -al` lists the file

Using `FileUtils.safe_unlink` instead of `File.unlink` to safely remove the file when it exists without any error
@ioquatix
Copy link
Member

Is it possible we can add some test for this?

@ioquatix ioquatix merged commit 8f91a7b into socketry:main Oct 27, 2023
@ioquatix
Copy link
Member

I’ll release this tomorrow.

@ioquatix ioquatix mentioned this pull request Oct 29, 2023
3 tasks
@ioquatix
Copy link
Member

Do you mind letting me know what OS you were running on?

@mintuhouse
Copy link
Contributor Author

Docker image: ruby:3.3.0-preview2-slim-bookworm on M2 Mac
uname -a
Linux 21018ce43f1f 6.4.16-linuxkit #1 SMP PREEMPT Tue Oct 10 20:38:06 UTC 2023 aarch64 GNU/Linux

@ioquatix
Copy link
Member

Are you using Docker Desktop?

@mintuhouse
Copy link
Contributor Author

yes
Docker Desktop
Version: 4.24.2 (124339)
Engine: 24.0.6
Compose: v2.22.0-desktop.2

@ioquatix
Copy link
Member

Okay, I released v1.36.1, do you mind checking it? Thanks :)

@mintuhouse
Copy link
Contributor Author

Thank you. 1.36.1 works 🎉

@ioquatix
Copy link
Member

Thanks for your report and PR.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants