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

Open
#351 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.