[kwlug-disc] Your regular reminder that unix socket path must be short

Mikalai Birukou mb at 3nsoft.com
Tue Nov 15 08:18:43 EST 2022


Nice QA: 
https://unix.stackexchange.com/questions/367008/why-is-socket-path-length-limited-to-a-hundred-chars

Be advised that at least Node 16 will take your path and use only 
whatever first chars, doing it silently (devs screaming into void here).

Deno, on another hand, throws informative error:

"""

TypeError: path must be shorter than libc::sockaddr_un.sun_path

"""





More information about the kwlug-disc mailing list