Skip to content

fix: cleanup items from async refactor review#65

Merged
toddr merged 3 commits intomainfrom
koan.toddr.bot/fix-issue-63
Apr 6, 2026
Merged

fix: cleanup items from async refactor review#65
toddr merged 3 commits intomainfrom
koan.toddr.bot/fix-issue-63

Conversation

@toddr-bot
Copy link
Copy Markdown
Contributor

@toddr-bot toddr-bot commented Apr 5, 2026

Summary

Addresses the polish items identified in the async HTTP refactor review (PR #62). These are cleanup items — no behavioral changes.

Fixes #63

Changes

  • Remove dead _sync_io flag from HTTP.pm constructor (set but never read)
  • Remove commented-out DESTROY sub from ACME2.pm
  • Remove commented-out Content-Type line from HTTP.pm
  • Guard empty lines in Curl.pm _imitate_http_tiny header parsing
  • Rename _directory_promise to _directory_cache for clarity in sync mode
  • Add comment explaining why badNonce retry uses mutation instead of local (promise chain compatibility)

Test plan

  • All 284 existing tests pass (make test)
  • Verified all three modified files compile cleanly (perl -Ilib -c)

Generated by Kōan /fix


Quality Report

Changes: 3 files changed, 7 insertions(+), 12 deletions(-)

Code scan: clean

Tests: passed (OK)

Branch hygiene: clean

Generated by Kōan post-mission quality pipeline

toddr-bot and others added 3 commits April 5, 2026 23:18
- Remove _sync_io flag from HTTP.pm (set but never read)
- Remove commented-out DESTROY sub from ACME2.pm
- Remove commented-out Content-Type line from HTTP.pm

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Trailing CRLF in HTTP headers produces an empty line after split.
Without this guard, the empty line would be parsed as a malformed
header and trigger an uninitialized-value warning on $value.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- Rename _directory_promise to _directory_cache — in sync mode
  this caches a plain hashref, not a promise, so the old name
  was misleading
- Add comment explaining why badNonce retry uses mutation on
  _retries_left instead of local() (promise chain compatibility)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@toddr toddr marked this pull request as ready for review April 6, 2026 01:07
@toddr toddr merged commit 02a853b into main Apr 6, 2026
20 checks passed
@toddr toddr deleted the koan.toddr.bot/fix-issue-63 branch April 6, 2026 01:07
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.

Async refactor: cleanup items from review

2 participants