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.
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 | 7 years ago | |
| .github | 7 years ago | |
| ansible_mitogen | 7 years ago | |
| docs | 7 years ago | |
| examples | 7 years ago | |
| mitogen | 7 years ago | |
| scripts | 7 years ago | |
| tests | 7 years ago | |
| .gitignore | 7 years ago | |
| .lgtm.yml | 8 years ago | |
| .travis.yml | 7 years ago | |
| LICENSE | 7 years ago | |
| MANIFEST.in | 7 years ago | |
| README.md | 7 years ago | |
| dev_requirements.txt | 7 years ago | |
| preamble_size.py | 7 years ago | |
| run_tests | 7 years ago | |
| setup.cfg | 8 years ago | |
| setup.py | 7 years ago | |
| tox.ini | 7 years ago | |
