loop.stop() will not be safe from a thread in tornado 5 There has never been a guarantee to this effect, but it has happened to be true so far. The result is that the stop event will not fire until the next loop iteration (e.g. triggered by an HTTP request). Using add_callback ensures that the main thread wakes and handles the stop event. cf tornado#2119pull/2752/head
parent
f8d4d6ad2d
commit
90004b9032
Loading…
Reference in new issue