Python Twisted Client Connection Lost
问题 I have this twisted client, which connects with a twisted server having an index. I ran this client from command-line. It worked fine. Now I modified it to run in loop (see main() ) so that I can keep querying. But the client runs only once. Next time it simply says connection lost \n Connection lost - goodbye! . What am i doing wrong? In the loop I am reconnecting to the server, it that wrong? from twisted.internet import reactor from twisted.internet import protocol from settings import AS