fix(client-python): clean pending DAP request on send failure#736
fix(client-python): clean pending DAP request on send failure#736wdwd720 wants to merge 2 commits intorocketride-org:developfrom
Conversation
📝 WalkthroughWalkthroughThe Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~8 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
No description provided. |
Summary
Type
fix
Testing
./builder testpassesChecklist
Linked Issue
Fixes #735
Problem
DAPClient.request()registers a pending request before sending. If the send path raises, the method exits before the normal pending-request cleanup runs, leaving stale state behind.Fix
Remove the request's pending entry when send fails, while preserving the existing exception behavior.
Successful request handling, timeout behavior, response correlation, and disconnect cleanup are unchanged.
Local Testing
PYTHONDONTWRITEBYTECODE=1 python3 -m pytest packages/client-python/tests/test_dap_client.py -q✅PYTHONDONTWRITEBYTECODE=1 python3 -m pytest packages/client-python/tests/test_dap_client.py packages/client-python/tests/test_client_env_loading.py -q✅Notes
This PR is intentionally scoped to the Python client DAP send-failure path.
Summary by CodeRabbit
Release Notes
Bug Fixes
Tests