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 ff2f44b046 core: reduce chance of Latch.read()/write()/close() race.
Previously it was possible for a thread to call Waker.defer() after
Broker has torns its Waker down, and the underlying file descriptor
reallocated by the OS to some other component.

This manifested as latches of a subsequent test invocation receiving the
waker byte (' ') rather than their expected byte '\x7f'.

This doesn't fix the problem, it just significantly reduces the chance
of it occurring. In future Side.write()/read()/close() must be
synchronized with a lock.

Previously the problem could be reliably triggered with:

    while :; do
        python tests/call_function_test.py -vf CallFunctionTest.{test_aborted_on_local_broker_shutdown,test_aborted_on_local_context_disconnect}
    done
8 years ago
.travis issue #275: Don't use -U in ansible_tests.sh -- forces paramiko upgrade 8 years ago
ansible_mitogen utils: always enable microsecond logging. 8 years ago
docs core: move Latch docs back inline. 8 years ago
examples examples: update mitogen-fuse.py for 3.x. 8 years ago
mitogen core: reduce chance of Latch.read()/write()/close() race. 8 years ago
tests tests: import cpu_load.py. 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 Initial Python 3.x port work. 8 years ago
ChangeLog docs: add initial ChangeLog. 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 issue #275: bump ansible to 2.5.5 8 years ago
preamble_size.py Initial Python 3.x port work. 8 years ago
run_tests issue #164: rename 'test' to 'run_tests' to avoid tab complete conflict 8 years ago
setup.cfg Ignore another annoying flake8 message. 8 years ago
setup.py Initial Python 3.x port work. 8 years ago
tox.ini Fix invocation of test runner by tox 8 years ago

README.md