def shutdown(self):
    while True:
        try:
            socket = self.sock_list.pop()
        except IndexError:
            return
        log.debug(('shutdown socket %s' % str(socket)))
        socket.bind(None)
        socket.close()
def shutdown(self):
    while True:
        try:
            socket = self.sock_list.pop()
        except IndexError:
            return
        log.debug(('shutdown socket %s' % str(socket)))
        socket.bind(None)
        socket.close()