Open travisghansen opened 2 years ago
I notice that the first log has the line
NET 3448: createConnection [
{ path: '//./pipe/csi-proxy-filesystem-v1' },
null,
[Symbol(normalizedArgs)]: true
]
But in the second log, none of the paths you tried to bind match that one. Maybe that is the problem. You should try binding unix:////./pipe/csi-proxy-filesystem-v1
I don't want named pipe, want a 'real' uds
You are using Windows. Unix Domain Sockets are a technology on Unix systems. As far as I understand, named pipes are the closest equivalent on Windows.
The connection is to a separate project: https://github.com/kubernetes-csi/csi-proxy (not my own service).
I'll gather up more info but afaik the other 'csi' drivers are using actual uds on windows. I'm trying to gather more info to be sure I understand that correctly. I can say that for sure go
apps build and run on windows when using uds code but I could be missing something.
https://devblogs.microsoft.com/commandline/af_unix-comes-to-windows/
OK, have confirmed that the csi drivers written in go
are indeed using 'real' uds
on windows and not named pipes.
AF_UNIX on Windows is a fairly new feature that's been introduced in Windows 10. I don't think it has crept into the nodejs runtime yet, and I doubt it'll be, since they've been working around the notion using named pipes since basically forever.
In all cases, I'm fairly certain this is on the nodejs runtime to support, not on us.
Is it possible to write my own transport/dialer and plug it into the grpc-js stuff or that's not feasible?
No, there isn't a practical way to do that.
I seem to find the edge cases don't I...
Problem description
I have 2 use-cases:
Are these 2 use-cases even possible currently? The link below seems to indicate it should but maybe not, or maybe I'm just doing something wrong in my configuration/setup?
When connecting to a named pipe it appears to detect the file appropriately etc and even send data but seemingly the named pipe is just ignoring the data.
For creating a server as a uds I simply cannot get the server to bind:
Reproduction steps
Environment
Windows 2019 1809
16.14.2
manual download the exe installer
"@grpc/grpc-js": "^1.5.7"
Additional context
https://github.com/grpc/grpc-node/pull/1244