swift-server / swift-server/async-http-client
feature: create a "hidden" a debug delegate that's automatically added in debug mode that polices the delegates
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 1.1k
- Forks
- 156
- PR merge metrics
- No merged PRs in 30d
Description
Historically we had many bugs like #348 where the delegate was called out multiple times "at the same time" (or didn't end up in a final state). This can be automatically checked and we should have a "hidden" delegate wrapper that just polices the guarantees (that we should also document) before calling into the actual user's delegate.
This can be in all debug mode runs everywhere.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no files, tests, or entry points. Start by tracing delegate invocation paths and how debug-mode runs are configured, then identify where the delegate guarantees should be enforced. Done means the debug-only wrapper detects violations, the guarantees are documented, and existing delegate behavior remains covered by tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- api
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100