Re: [Twisted-Python] Reactor.run() to be a non blocking call and run in background

2017-11-23 Thread Роман Мещеряков
Hi Nandha, You've got several alternatives here:If your code doesn't need to be run all the time while reactor runs, you could schedule your code to run periodically in reactor, e.g.:def my_python_code():  #Your code here  run_again_in_seconds = #calculate  reactor.callLater(run_again_in_seconds, m

[Twisted-Python] Reactor.run() to be a non blocking call and run in background

2017-11-20 Thread Nandha Kumar
Hi guys, I'm using twisted to host an ssh server.. My requirement that the python code I did needs to start the reactor and come out of the execution and needs to stop the reactor once stop is called.. But since the reactor. Run() seems to be a blocking one.. It isn't moving forward after star