cntlm icon indicating copy to clipboard operation
cntlm copied to clipboard

CNTLM Crash with big NPM Project (Windows 10)

Open SunNathan opened this issue 1 year ago • 12 comments

Hi everyone

Environment :

  • Windows 10
  • Cntlm (master build branch with cygwin 64)
  • NodeJS v20.11.1 & v16.14.0
  • NPM 10.2.4 & 8.19.4

Crash :

It seems that CNTLM crashes when I install a large project with NPM install. Here are the logs I get (repeated several times) with an NPM on Windows:

  • cntlm: PID 218: write() failed with error 9: Bad file descriptor
  • cntlm: PID 218: No proxy on the list works. You lose.
  • cntlm: PID 218: Proxy connect failed, will try <ourProxy>:3129
  • cntlm: PID 218: no buffer space available

After trying the same procedure, but with CNTLM installed on Linux, it works without crashing the cntlm proxy (by installing the NPM project on Windows and setting the proxy parameter to the Linux server). However, I get this message:

  • "Too many files open"

It seems that the crash on Windows comes from Cygwin, but I'm not 100% sure. If so, is there a workaround ?

Thank you

SunNathan avatar May 14 '24 07:05 SunNathan