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.
mitogen/mitogen
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
6 years ago
..
compat tokenize must parse under 3.x even if it won't run there 6 years ago
__init__.py Initial Python 3.x port work. 6 years ago
core.py core: reduce chance of Latch.read()/write()/close() race. 6 years ago
debug.py Get integration tests running under 2.6. 6 years ago
docker.py Initial Python 3.x port work. 6 years ago
fakessh.py Initial Python 3.x port work. 6 years ago
fork.py Initial Python 3.x port work. 6 years ago
jail.py Initial Python 3.x port work. 6 years ago
lxc.py Initial Python 3.x port work. 6 years ago
master.py master: fix resolve_relpath() 6 years ago
minify.py Initial Python 3.x port work. 6 years ago
parent.py parent: tidy up call_async() logging. 6 years ago
select.py select: add missing get(block=..) parameter. 6 years ago
service.py service: remove stray debug 6 years ago
setns.py Fix setns.py syntax for 3.x 6 years ago
ssh.py parent: python_path setting depends on local or remote 6 years ago
su.py Initial Python 3.x port work. 6 years ago
sudo.py Initial Python 3.x port work. 6 years ago
unix.py Initial Python 3.x port work. 6 years ago
utils.py utils: handle duplicate log_to_file() calls. 6 years ago