Skip to content

Fix launch request dropped when pipelined after initialize - #96

Open
tmcgilchrist wants to merge 1 commit into
hackwaly:masterfrom
tmcgilchrist:fix_launch_race
Open

Fix launch request dropped when pipelined after initialize#96
tmcgilchrist wants to merge 1 commit into
hackwaly:masterfrom
tmcgilchrist:fix_launch_race

Conversation

@tmcgilchrist

Copy link
Copy Markdown
Collaborator

Fix a launch request being dropped when sent immediately after initialize. The Launch handler was registered one scheduler tick after the initialize response was sent, so a pipelined launch could arrive first, be silently dropped ("Can not find handler"), and leave the session stuck with no initialized event.

The previous behaviour wasn't strictly DAP spec compliant, a client is free to send a request without waiting for the previous response.

@sim642 sim642 added the bug Something isn't working label Jul 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants