@green these sockets are like the only kind of resource not cleaned up by the kernel after program exit. Wait what? something’s really wrong here. Did you fork off a child process with these sockets open? it might’ve inherited them, meaning you have to close the sockets in both processes.