ProxyBroker
ProxyBroker copied to clipboard
Cannot stop Broker with ctrl+c
With the basic example, ( https://github.com/constverum/ProxyBroker/blob/master/examples/basic.py ) when hitting ctrl+c, the broken does not raise an exception, but add None to the proxy queue, and the other tasks are then terminating when receive this None.
When ProxyBroker is the main component of a system, it's not a problem, but when it's just a small part, i.e when reusing proxy and putting then back in the queue, it's a design problem to have to relied to a None present in a queue to bring down the ioloop.
Have you tried ctrl+d? The python compiler also interprets that as an exit on some cases.
ctrl-break in Windows works