deno
d90b4e56 - fix(ext/node): apply TCP reset inside _destroy for atomicity

Commit
217 days ago
fix(ext/node): apply TCP reset inside _destroy for atomicity Move the handle.reset() (SO_LINGER=0) call from _reset() into _destroy(), right before handle.close(). This ensures the linger setting and socket close happen in the same tick, preventing the OS from clearing the linger option before the close on Linux. Uses a _resetAndClosing flag matching Node.js's pattern.
Author
Parents
Loading