I have this twisted client that connects to a twisted server with an index. I launched this client from the command line. It worked fine. Now I modified it to run in a loop (see main() ) so that I can continue to query. But the client only works once. Next time he just says connection lost \n Connection lost - goodbye! .
What am I doing wrong? In the loop, I reconnect to the server, is this wrong?
from twisted.internet import reactor from twisted.internet import protocol from settings import AS_SERVER_HOST, AS_SERVER_PORT
source share