I couldn\'t find this in the docs, but how am I meant to break out of the asyncore.loop() without using signals?
asyncore.loop()
The asyncore loop also quits when there are no connections left, so you could just close the connection. If you have multiple connections going on then you can use asyncore.close_all().