Ensure _run_defer() fully executes at least once before shutdown
Without this, it's possible for Waker to be start_received() after the shutdown signal has already been sent, resulting in 5 second delay during shutdown. Additionally mask EBADF during os.write() to waker's write side. Necessary since nothing synchronizes writer threads from the broker thread during shutdown. Could be done with a lock instead, but this is cheaper.pull/48/head
parent
8c6d861f15
commit
baf4380b6d
Loading…
Reference in New Issue