speed-cloudflare-cli icon indicating copy to clipboard operation
speed-cloudflare-cli copied to clipboard

Fix MaxListenersExceededWarning in socket event handlers

Open sbs44 opened this issue 2 months ago • 1 comments

Fixes #33

Changes

  • Set socket.setMaxListeners(100) in the request() function to accommodate all event listeners
  • Updated test mocks to include the setMaxListeners method

Testing

  • All existing tests pass
  • Verified no warnings appear when running the CLI
  • Tested both with node cli.js and the compiled binary

sbs44 avatar Nov 13 '25 18:11 sbs44