Skip to content

[pull] master from cea-hpc:master#23

Merged
pull[bot] merged 1 commit intoMu-L:masterfrom
cea-hpc:master
Aug 7, 2025
Merged

[pull] master from cea-hpc:master#23
pull[bot] merged 1 commit intoMu-L:masterfrom
cea-hpc:master

Conversation

@pull
Copy link
Copy Markdown

@pull pull bot commented Aug 7, 2025

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.3)

Can you help keep this open source service alive? 💖 Please sponsor : )

StreamWorker.abort() calls Engine.remove() with abort set to True but
this flag was never actually used. The problem is that
EngineClient._close_stream() is then called and flushes any read
buffers, which can lead to unexpected read events and messing with the
user's code logic (StreamWorker is used by the Gateway and this issue
was discovered there).

With this patch, we ensure that worker.abort() actually aborts all
engine events.

Just a last note that we keep the current behavior when both abort and
timeout are set to True in Engine.remove()/EngineClient._close().
In that case, timeout=True prevails as it is Engine-induced and we
consider we can flush any read buffers (so potentially generating
a few ev_read events).
@pull pull bot locked and limited conversation to collaborators Aug 7, 2025
@pull pull bot added the ⤵️ pull label Aug 7, 2025
@pull pull bot merged commit d547257 into Mu-L:master Aug 7, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant