Add support for active sockets in listener