Skip to content
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

PrecompileMQTT payload contains temporary socket name invalid in Windows #13

Open
divbyzerofordummies opened this issue Jan 7, 2025 · 0 comments · May be fixed by #14
Open

PrecompileMQTT payload contains temporary socket name invalid in Windows #13

divbyzerofordummies opened this issue Jan 7, 2025 · 0 comments · May be fixed by #14

Comments

@divbyzerofordummies
Copy link

When precompiling PrecompileMQTT, the precompile workload creates a MQTTClient.MockMQTTBroker by providing it a socket name /tmp/testmqtt.sock.
This name is then given as an argument to the listen function of the Sockets library, which creates a PipeServer and binds it to the given path:

function listen(path::AbstractString)
    sock = PipeServer()
    bind(sock, path) || throw(ArgumentError("could not listen on path $path"))
    return listen(sock)
end

However, according to here,

Windows doesn't support arbitrary paths, it requires that they conform to a specific pattern such that their name prefix (\\.\pipe\) uniquely identifies the filetype

A valid pipe name under Windows could be (?)

\\.\pipe\tmp\testmqtt.sock

At least this worked for me.

Version: 0.3.1 (specifically, Git hash 23f5429

@divbyzerofordummies divbyzerofordummies linked a pull request Jan 7, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant