Skip to content

fix: avoid stale HTTP messenger state - #1633

Merged
kentbull merged 1 commit into
WebOfTrust:v1.2.14from
kentbull:fix/http-messenger-doer-order-v1.2.14
Aug 27, 2026
Merged

kentbull merged 1 commit into
WebOfTrust:v1.2.14from
kentbull:fix/http-messenger-doer-order-v1.2.14

Conversation

@kentbull

Copy link
Copy Markdown
Contributor

Summary

  • run the HTTP client doer between request production and response handling
  • advance the one-shot stream client before inspecting its response queue
  • cover both messenger variants with a same-recurrence response regression

Why

HTTPMessenger currently handles responses before its client doer runs, so it reads transport state left over from the prior scheduler recurrence. HTTPStreamMessenger similarly inspects the response queue before advancing its child client. The reordered paths interpret state produced by the current client service pass.

Scope

This PR contains only the HTTP doer-ordering change and its focused regression. It does not include transport-completion accounting, cutoff policy, Directant lifecycle, retry, timeout, or configuration changes from #1614.

Verification

  • tests/app/test_agenting.py: 5 passed
  • fatal flake8 gate (E9,F63,F7,F82): 0 findings
  • diff against v1.2.14: one commit, two files

Run the HTTP client doer between request production and response handling, and advance the stream client before inspecting its response queue. Both paths now interpret state produced by the current scheduler recurrence instead of stale state from the previous pass.

Add a focused same-recurrence regression for both HTTP messenger variants. No transport completion, cutoff policy, Directant, or retry behavior changes are included.
@kentbull
kentbull force-pushed the fix/http-messenger-doer-order-v1.2.14 branch from dab6ea4 to 6037fbf Compare August 27, 2026 02:18
@kentbull
kentbull merged commit 22c33a5 into WebOfTrust:v1.2.14 Aug 27, 2026
5 checks passed
@kentbull
kentbull deleted the fix/http-messenger-doer-order-v1.2.14 branch August 27, 2026 02:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant