tractor/tractor
Tyler Goodlet fde6d84b9d Fix msg-draining on `parent_never_opened_stream`!
Repairs a bug in `drain_to_final_msg()` where in the `Yield()` case
block we weren't guarding against the `ctx._stream is None` edge case
which should be treated a `continue`-draining (not a `break` or
attr-error!!) situation since the peer task maybe be continuing to send
`Yield` but has not yet sent an outcome msg (one of
`Return/Error/ContextCancelled`) to terminate the loop. Ensure we
explicitly warn about this case as well as `.cancel()` emit on a taskc.

Thanks again to @guille for discovering this!

Also add temporary `.info()`s around rxed `Return` msgs as part of
trying to debug a different bug discovered while updating the
context-semantics test suite (in a prior commit).
2025-03-25 12:59:08 -04:00
..
_testing Deliver a `MaybeBoxedError` from `.expect_ctxc()` 2025-03-25 12:59:08 -04:00
devx Match `maybe_open_crash_handler()` to non-maybe version 2025-03-25 12:54:03 -04:00
experimental Drop now-deprecated deps on modern `trio`/Python 2025-03-16 16:06:24 -04:00
msg Fix msg-draining on `parent_never_opened_stream`! 2025-03-25 12:59:08 -04:00
trionics Use `collapse_eg()` in broadcaster suite 2025-03-25 12:54:03 -04:00
__init__.py Expose `._state.debug_mode()` predicate at top level 2025-03-25 12:54:03 -04:00
_child.py Hide `._entry`/`._child` frames, tweak some more type annots 2025-03-20 23:22:45 -04:00
_clustering.py Clean up some imports in `._clustering` 2025-03-25 12:54:03 -04:00
_context.py Support `ctx: UnionType` annots for `@tractor.context` eps 2025-03-25 12:59:08 -04:00
_discovery.py Finally implement peer-lookup optimization.. 2025-03-24 14:04:52 -04:00
_entry.py Log format tweaks for sclang reprs 2025-03-25 12:54:03 -04:00
_exceptions.py Avoid attr-err when `._ipc_msg==None` 2025-03-25 12:59:08 -04:00
_forkserver_override.py Re-license code base for distribution under AGPL 2021-12-14 23:33:27 -05:00
_ipc.py Moar sclang log fmting tweaks 2025-03-25 12:54:03 -04:00
_mp_fixup_main.py Avoid importing mp for as long as possible 2022-02-17 11:55:26 -05:00
_multiaddr.py Fix doc string "its" typo.. 2025-03-20 19:50:31 -04:00
_portal.py A couple more loose-egs flag flips 2025-03-25 12:54:03 -04:00
_root.py Expose `hide_tb: bool` from `.open_nursery()` 2025-03-25 12:54:03 -04:00
_rpc.py Moar sclang log fmting tweaks 2025-03-25 12:54:03 -04:00
_runtime.py Go to loose egs in `Actor` root & service nurseries (for now..) 2025-03-25 12:54:03 -04:00
_spawn.py Log format tweaks for sclang reprs 2025-03-25 12:54:03 -04:00
_state.py Moar sclang log fmting tweaks 2025-03-25 12:54:03 -04:00
_streaming.py Moar sclang log fmting tweaks 2025-03-25 12:54:03 -04:00
_supervise.py Hide `open_nursery()` frame by def 2025-03-25 12:54:03 -04:00
log.py Support passing pre-conf-ed `Logger` 2025-03-24 15:37:12 -04:00
to_asyncio.py Continue supporting py3.11+ 2025-03-24 21:44:46 -04:00