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/tests/data
Alex Willmer 17bee70dc2 mitogen: Fix BlockingIOError & EAGAIN in subprocess stdio
Mitogen was leaving the stdout and stderr of subprocesses in non-blocking
mode. When Python code ran in the remote process created by Mitogen calls such
as `print(long_string)` or `os.stout.write(bigger_than_the_buffer)` sometimes
raised `BlockingIOError`, or similar.

This change
- Removes code in `mitogen.core.Side` that set blocking/non-blocking mode
- Adds blocking/non-blocking control to `os.mitogen.pipe()` and a new
  function `mitogen.core.socketpair()`
- Replaces `mitogen.core.set_block` and `mitogen.core.set_nonblock`
  with `mitogen.core.set_blocking`, mirroring `os.set_blocking`
- Updates call sites as appropriate
- Adds tests for new functions and arguments
- Adds a regression test for subprocess stdio blocking/non-blocking

fixes #712
4 months ago
..
docker CI: Refactor sshd configuration into a role 1 year ago
importer trivia: Fix trailing whitespace 1 year ago
minimize_samples ci: Upgrade VM Images to macOS 11 and Ubuntu 20.04 3 years ago
stubs Remove unused module imports 4 years ago
broker_shutdown_test_python.py parent: define Connection behaviour during Broker.shutdown() 6 years ago
fd_check.py tests: Fix unclosed file in fd_check script 11 months ago
main_with_no_exec_guard.py Remove unused module imports 4 years ago
plain_old_module.py Use with open(): ... to ensure file objects get closed 4 years ago
python_never_responds.py tests.parent_test: Don't assume interpreter is in /usr/bin 4 years ago
self_contained_program.py Initial Python 3.x port work. 8 years ago
stdio_checks.py mitogen: Fix BlockingIOError & EAGAIN in subprocess stdio 4 months ago
unarchive_test.tar issue #558, #582: preserve remote tmpdir if caller did not supply one 6 years ago