Mirror of mitogen
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
Go to file
David Wilson 38c0ad1eea core: don't deregister Router handles until Broker exit.
Lots of "invalid handle: ..., 102" messages started appearing during
exit recently because ordering changed slightly, and local handles were
sent _DEAD even though the broker loop was still progressing through
shutdown.

The "shutdown" event is too early to close handles: it is the start of
the grace period where streams and downstream contexts can finish up any
work and deliver buffered data, including FORWARD_LOG messages that
haven't arrived yet.

So instead,

- move the _DEAD logic to the "exit" event,
- get rid of Context.on_shutdown() entirely, it's been unused for over
  a month,
- get rid of the "crash" event, since it always fires prior to "exit",
  and its only use was to send _DEAD to local handles, which now happens
  during exit anyway.
8 years ago
.travis issue #164: teach debops_tests.sh to use SSH 8 years ago
ansible_mitogen ansible: tidy up annoying syntax 8 years ago
docs core: don't deregister Router handles until Broker exit. 8 years ago
examples issue #164: split "examples" out into regression/integration tests. 8 years ago
mitogen core: don't deregister Router handles until Broker exit. 8 years ago
tests tests: fix filename. 8 years ago
.gitignore docs: fix intensely annoying _prefix, 2 years later. 8 years ago
.lgtm.yml compat: ignore LGTM checks on third party 8 years ago
.travis.yml issue #164: convert "examples" into actual tests 8 years ago
LICENSE Add license text everywhere. 8 years ago
README.md README: move testing bits into tests directory. 8 years ago
dev_requirements.txt tests: Add coverage as a dev requirement 8 years ago
preamble_size.py Merge branch 'master' into eye-of-the-token-its-the-thrill-of-the-light 8 years ago
run_tests issue #164: rename 'test' to 'run_tests' to avoid tab complete conflict 8 years ago
setup.cfg tests: Switch to unit2 test runner, with coverage 8 years ago
setup.py setup: Scan project dir to find packages 8 years ago
tox.ini tests: Switch to unit2 test runner, with coverage 8 years ago

README.md