Skip to content

fix(engine): graceful shutdown on duration expiry and clarify error log - #30

Merged
xvlet merged 1 commit into
masterfrom
fix/engine/duration-expiry
Aug 4, 2026
Merged

fix(engine): graceful shutdown on duration expiry and clarify error log#30
xvlet merged 1 commit into
masterfrom
fix/engine/duration-expiry

Conversation

@xvlet

@xvlet xvlet commented Aug 3, 2026

Copy link
Copy Markdown
Owner
  • single.go: rename interval debug log from "First error encountered"
    to "Error sample" to reflect per-interval reset semantics
  • stateful.go: preserve original ctx as httpCtx before WithTimeout is
    applied so HTTP requests are not bound to the duration deadline
  • stateful.go: change reqCtx from ctx to httpCtx so in-flight HTTP
    requests complete naturally when test duration expires instead of
    being forcibly cancelled with "context deadline exceeded"
  • stateful.go: change result-send selects (main HTTP result, failRes)
    to use httpCtx.Done() so results from in-flight requests are
    recorded in .bin even after duration timeout fires; only an
    explicit Stop Test cancels httpCtx and drops results

- single.go: rename interval debug log from "First error encountered"
  to "Error sample" to reflect per-interval reset semantics
- stateful.go: preserve original ctx as httpCtx before WithTimeout is
  applied so HTTP requests are not bound to the duration deadline
- stateful.go: change reqCtx from ctx to httpCtx so in-flight HTTP
  requests complete naturally when test duration expires instead of
  being forcibly cancelled with "context deadline exceeded"
- stateful.go: change result-send selects (main HTTP result, failRes)
  to use httpCtx.Done() so results from in-flight requests are
  recorded in .bin even after duration timeout fires; only an
  explicit Stop Test cancels httpCtx and drops results
@xvlet xvlet added the enhancement New feature or request label Aug 3, 2026
@xvlet
xvlet merged commit 7ca4d25 into master Aug 4, 2026
1 check passed
@xvlet
xvlet deleted the fix/engine/duration-expiry branch August 4, 2026 00:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant