Skip to content

refactor: issue DAP requests atomically - #34

Merged
derekparker merged 1 commit into
masterfrom
refactor/atomic-dap-requests
Sep 23, 2026
Merged

derekparker merged 1 commit into
masterfrom
refactor/atomic-dap-requests

Conversation

@derekparker

Copy link
Copy Markdown
Member

Summary

Introduce a single production request-issuance path that holds sendMu while it:

  1. assigns the DAP sequence number,
  2. constructs the request,
  3. logs the request, and
  4. writes it to the transport.

All production request methods and dynamic launch/attach requests use this path. This prevents concurrent control requests from sending sequence numbers out of wire order and brings EvaluateRequest under the same send synchronization as every other request.

The compatibility newRequest and send helpers remain for existing protocol tests.

Stack

Verification

  • go vet ./...
  • go test -race -count=1 ./...

@derekparker
derekparker added this pull request to stack #36 September 23, 2026 18:49
Base automatically changed from refactor/split-tools to master September 23, 2026 18:50
@derekparker
derekparker force-pushed the refactor/atomic-dap-requests branch from 8ee3871 to 4ba37f0 Compare September 23, 2026 18:50
@derekparker
derekparker merged commit 24b7812 into master Sep 23, 2026
3 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