max sockets fix