How Fixing a Bug in NodeJS Accidentally Doubled Performance
summary
A Node.js HTTP keep-alive bug is identified that leaves sockets and memory hanging under browser-like traffic. The talk presents a 12-line core patch adding a keep-alive lifetime timeout (default ~5s) to reclaim idle sockets after response end, and shows benchmarks and large-scale simulated-client tests demonstrating reduced heap pressure and over 2× faster socket teardown, plus notes on test coverage and compatibility caveats.
AI-written summary · about
chapters (8)
- 0:00Introduction
- 3:33Node.js socket leak
- 8:21Patch development
- 11:59Fix details
- 16:48Patch use
- 19:15Further research
- 21:31Open source contributions
- 23:02Performance boost
related talks
26mCan we Double the Node.js HTTP Client Throughput?
22mThe Journey About How I Fixed a Bug in the Node.js Core That Affected Thousands of Packages
01h 04mNode.js performance analytics and best practices
30mNode.js Deep Debugging
09mNodejs Runtime Performance Tips
23mThe Journey About How I Fixed a Bug in the Node.js Core that Affected Thousands of P...
34mEvent loop tales on I/O bound Node.js applications
53mMastering Node.js Performance
