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
Marc Hartmayer 8807cd53be mitogen: first_stage: Break the while loop in case of EOF
The current implementation can cause an infinite loop, leading to a process that
hangs and consumes 100% CPU. This occurs because the EOF condition is not
handled properly, resulting in repeated select(...) and read(...) calls.

The fix is to properly handle the EOF condition and break out of the loop when
it occurs.

-SSH command size: 822
+SSH command size: 838
 Preamble (mitogen.core + econtext) size: 18226 (17.80KiB)

-mitogen.parent        99062  96.7KiB  51235 50.0KiB 51.7%  12936 12.6KiB 13.1%
+mitogen.parent        99240  96.9KiB  51244 50.0KiB 51.6%  12956 12.7KiB 13.1%

Fixes: https://github.com/mitogen-hq/mitogen/issues/1348
Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com>
3 weeks ago
..
compat compat: fix Py2.4 SyntaxError 7 years ago
imports Correct mitogen.imports.* licenses 2 months ago
__init__.py Begin 0.3.36dev 1 month ago
buildah.py Remove unused module imports 4 years ago
core.py mitogen: Clarify blacklisted ModuleNotFoundError message 1 month ago
debug.py [stream-refactor] fix flake8 errors 7 years ago
doas.py remove unused imports flagged by lgtm 7 years ago
docker.py Refactor Stream, introduce quasi-asynchronous connect, much more 7 years ago
fakessh.py Cleanup unused and missing imports 2 months ago
fork.py mitogen: Fix BlockingIOError & EAGAIN in subprocess stdio 5 months ago
jail.py Stop using mitogen root logger in more modules, remove unused loggers 7 years ago
kubectl.py Remove unused module imports 4 years ago
lxc.py Remove unused module imports 4 years ago
lxd.py Remove unused module imports 4 years ago
master.py ansible_mitogen: Speedup startup by not sending `__main__` 2 months ago
minify.py Normalize docstring formatting 7 years ago
os_fork.py mitogen: Fix BlockingIOError & EAGAIN in subprocess stdio 5 months ago
parent.py mitogen: first_stage: Break the while loop in case of EOF 3 weeks ago
podman.py Remove unused module imports 4 years ago
profiler.py Fix stdlib typos that would cause NameError or AttributeError exceptions 4 years ago
select.py Merge devel/290 @ 79b979ec8544ef5d8620c64068d4a42fabf50415 6 years ago
service.py mitogen: Consolidate back compatibility fallbacks and polyfills in mitogen.core 1 year ago
setns.py Refactor Stream, introduce quasi-asynchronous connect, much more 7 years ago
ssh.py Cleanup unused and missing imports 2 months ago
su.py mitogen: Consolidate back compatibility fallbacks and polyfills in mitogen.core 1 year ago
sudo.py reverted autolinted code 6 years ago
unix.py Cleanup unused and missing imports 2 months ago
utils.py mitogen: Consolidate back compatibility fallbacks and polyfills in mitogen.core 1 year ago