On Thu, May 6, 2021 at 6:04 AM Jakub Sitnicki <jakub@xxxxxxxxxxxxxx> wrote: > I think we also need unhash so that socket gets removed from sockmap > on disconnect, that is connect(fd, {sa_family=AF_UNSPEC, ...}, ...). Excellent catch! I thought disconnect is not supported for AF_UNIX as there is not ->disconnect() in af_unix.c, but after reading unix_dgram_connect() again, it is actually supported. Let me think about how to handle this properly here. Thanks.