ProxyBroker icon indicating copy to clipboard operation
ProxyBroker copied to clipboard

Cannot stop Broker with ctrl+c

Open julienfr112 opened this issue 6 years ago • 2 comments

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.

julienfr112 avatar Feb 02 '19 19:02 julienfr112

Have you tried ctrl+d? The python compiler also interprets that as an exit on some cases.

synchronizing avatar Jun 01 '19 14:06 synchronizing

ctrl-break in Windows works

yucongo avatar Dec 24 '19 03:12 yucongo