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 90c989ee59 [stream-refactor] BufferedWriter must disconenct Stream, not Protocol
Fix a race where if Stream.on_receive() detects disconnect, it calls
Stream.on_disconnect(), which fires Stream 'disconnect' event, whereas
if BufferedWriter.on_transmit() detects disconnect, it called
Protocol.on_disconnect(), which did not fire the Stream 'disconnect'
event.

Since mitogen.parent listens on Stream's 'disconnect' event to reap
children, this was causing a very difficult to trigger test failure.

Triggered after <1000 runs on a Xeon E5530 with hyperthreading using
hackbench running at the same priority:

    $ hackbench -s 1048576 -l 100000000000 -g 4
7 years ago
.ci Allow specifying -vvv to debops_tests. 7 years ago
.github issue #574: fix ISSUE_TEMPLATE link 7 years ago
ansible_mitogen module_finder: pass raw file to compile() 7 years ago
docs [stream-refactor] mark setns module as requiring Python >2.4 7 years ago
examples issue #589: remove outdated/incomplete examples 7 years ago
mitogen [stream-refactor] BufferedWriter must disconenct Stream, not Protocol 7 years ago
scripts import release-notes script. 7 years ago
tests [stream-refactor] statically link doas binary using musl 7 years ago
.gitignore Add tests/ansible/.*.pid to gitignore (for ansible_mitogen/process.py) 7 years ago
.lgtm.yml compat: ignore LGTM checks on third party 8 years ago
.travis.yml .travis.yml: Add reverse shell spawn for Travis too 7 years ago
LICENSE Update copyright year everywhere. 7 years ago
MANIFEST.in setup.py: include LICENSE; closes #538. 7 years ago
README.md Update README link 7 years ago
dev_requirements.txt Split dev_requirements.txt up according to test mode. 7 years ago
preamble_size.py Refactor Stream, introduce quasi-asynchronous connect, much more 7 years ago
run_tests Allow independant control of coverage erase and reporting 7 years ago
setup.cfg Ignore another annoying flake8 message. 8 years ago
setup.py Update copyright year everywhere. 7 years ago
tox.ini Aggregate code coverage data across tox all runs 7 years ago

README.md