-
Notifications
You must be signed in to change notification settings - Fork 47
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
hand-waving ErrorKind::AddrInUse
is unhelpful
#68
Comments
Update: It seems that the pipes on macos machines are placed inside the scoped temp files, as in |
Another update: |
The tests tackle this by using random IDs. For stable locations, though, the generic name types currently don't provide a robust way to handle
Unfortunately, the author of the patch likely did not consider that some platforms that have
If other users of the pipe target a well-specified per-platform path, the |
I have reverted the |
Thank you for the rapid response @kotauskas ! Do you have a kofi or some other support mechanism I can reward you with? |
I currently don't have a donation box because there are difficulties with accepting international payments in my country that I've yet to navigate. I may set one up later, though. |
Thats fair, I am ok with needing to handle this on my own. The issue was mostly that from |
Ah, I am very familiar with those kinds of setbacks. My sympathies |
Context: latest version 2.2.0, rust 1.79.0, macos ventura 13.6
I'm working on a cross-platform client for some thing or another, and I must use ipc on unix and windows.
In the previous major, getting an
AddrInUse
meant that the/tmp/whatever
file had to be removed and that was it.This was also expressed in the examples.
Not anymore.
In the current paradigm, once a
GenericNamespaced
orGenericFilePath
is created it is impossible to extract whatever actual path is being used. In practicality, it means 2 thingsmyPipe
,/tmp/myPipe
./tmp/myPipe/
,/.pipe/myPipe
,@myPipe
,myPipe.sock
,/tmp/myPipe.sock
, are all invalid (as in, non-existent) files. This is regardless of usages ofGenericNamespaced
andGenericFilePath
.It might be that you know exactly what to do to handle the situation, but I have not the slightest of clues and neither did anyone in my team and circle. I've went through the docs, issues, and source files of this project many times over.
I would very much appreciate some sort of guidance
The text was updated successfully, but these errors were encountered: