Skip to content

fix: stabilize reentrant lifecycle delivery across runners #437

Closed

Description

@electrohyun

Current state

Required macOS CI exposed scheduler-dependent lifecycle observations in the Cycle 2 regressions. A deterministic write-drain barrier then showed a narrower runtime gap: when a packet handler calls client.disconnect(), a later packet that already entered server middleware is preserved by Socket.IO but discarded by smocket after the middleware resumes. A packet held by middleware before an external disconnect must still be discarded.

Proposed change

Make the real fixture prove that both client writes left its queue before releasing the first handler, and preserve dispatch ownership only for teardown started re-entrantly from that handler. Keep externally held packets guarded, attach Manager ACK rejection assertions before teardown, and serialize real-target files that each own a live server.

Behavior

  • This aligns queued middleware delivery with real Socket.IO

Activity

  1. moved this from Backlog to In progress in smocketon Aug 26, 2026
  2. changed the title [-]test: stabilize lifecycle observations across runners[/-] [+]fix: stabilize reentrant lifecycle delivery across runners[/+] on Aug 26, 2026
  3. moved this from In progress to Done in smocketon Aug 26, 2026
  4. self-assigned this
    on Aug 27, 2026
  5. added
    bug
    on Aug 27, 2026
  6. added this to the v1.0.0 milestone on Aug 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bug

Type

No type

Projects

  • Status
    Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions