Creating a Unix domain socket in a deep directory is a bad idea, or at least causes a tricky problem. Because the maximum length of the socket path is around 100 bytes.

On Linux, according to unix(7), it is 108 bytes.

On Linux, sun_path is 108 bytes in size; see also NOTES, below.

On FreeBSD, according to unix(4), it is 104 bytes.

UNIX-domain addresses are variable-length file system pathnames of at most 104 characters.

It is consistent with NetBSD and OpenBSD.

So, it is 2020 and I need to put something in around 100 bytes! That is shorter than the original Tweet length. I realized this limitation recently because of firecracker-containerd. It has a workaround which I copied to another part of the codebase.