Skip to content

Own request-local native inference cancellation - #259

Merged
relh merged 1 commit into
masterfrom
relh/native-request-control
Oct 4, 2026
Merged

relh merged 1 commit into
masterfrom
relh/native-request-control

Conversation

@relh

@relh relh commented Oct 4, 2026

Copy link
Copy Markdown
Contributor

Canceling a native request now stops only that request. Later decisions can use a fresh control; whole-process stop still blocks every new inference request.

performNativePost requires an owned NativeRequestControl retained through reader cleanup and worker join. The original absolute deadline remains unchanged. nhCanceled preserves actual partial body/header bytes and cannot be selected. Current helper callers and CI use the definitive API.

Validation on bounded remote CPU, official Nim 2.2.4: existing HTTP byte/deadline/signal, HTTPS trust, and artifact lifecycle suites passed. Eight real partial-invalid-byte cancel→later-call→global-stop sequences passed, plus eight under AddressSanitizer without errors.

Source-only change. Game integrations, images, authenticated platform receipts, production releases, and training strength remain separate gates.

Co-authored-by: Codex (GPT-6) <noreply@openai.com>
@relh
relh marked this pull request as ready for review October 4, 2026 04:08
@relh
relh merged commit 0457dd4 into master Oct 4, 2026
2 checks passed
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