Repository navigation
node:net: keep accepted socket open while buffered inbound data is unread - #36332
Merged
Merged
Claude / Claude Code Review
completed
Jul 29, 2026 in 10m 36s
Code review found 1 potential issue
Found 1 candidates, confirmed 1. See review comments for details.
Details
| Severity | Count |
|---|---|
| 🔴 Important | 0 |
| 🟡 Nit | 1 |
| 🟣 Pre-existing | 0 |
| Severity | File:Line | Issue |
|---|---|---|
| 🟡 Nit | test/js/node/net/node-net.test.ts:1085 |
Bare 50ms setTimeout left uncommented after deleting its justification |
Annotations
Check warning on line 1085 in test/js/node/net/node-net.test.ts
claude / Claude Code Review
Bare 50ms setTimeout left uncommented after deleting its justification
Deleting the `// Wait well past the teardown's setImmediate window before reading.` comment is right (the `destroyAbandonedNT` window it referenced no longer exists), but the bare `await new Promise<void>(resolve => setTimeout(resolve, 50))` is now left with no adjacent justification. REVIEW.md requires any literal sleep of ≥50ms outside a bounded poll loop to carry a comment naming why no observable signal exists — either add a fresh one (e.g. `// Simulate a late reader; no signal to await — th
Loading