class EchoHandler(asyncore.dispatcher_with_send):

    def handle_read(self):
        data = self.recv(8192)
if data:
    raise asyncore.ExitNow('Server is quitting!')
How to quit an asyncore dispatcher from a handler?