sync-request icon indicating copy to clipboard operation
sync-request copied to clipboard

Possibly leaked handle?

Open acepace opened this issue 4 years ago • 1 comments

Running tests using sync-request and Jest has Jest detecting a possibly leaked handle.

PROCESSWRAP

      at start (node_modules/sync-rpc/lib/index.js:33:13)
      at sendMessage (node_modules/sync-rpc/lib/index.js:133:17)
      at createClient (node_modules/sync-rpc/lib/index.js:173:27)
      at Object.<anonymous> (node_modules/sync-request/lib/index.js:16:14)

acepace avatar Apr 09 '20 12:04 acepace

I am also facing the same issue. Is there any update?

prateeksha23 avatar Jun 15 '21 16:06 prateeksha23

Had a similar problem with Jest so I wrote a library called sync-request-curl.

The usage is the same.

sync-request-curl is free from this bug and has better performances from leveraging node-libcurl, but doesn't have close to the same level of compatibility as sync-request. It only works with recent versions of NodeJS and has no support for JavaScript in the Browser.

I believe this issue is also closely linked with #137.

The cause is sync-rpc and is explained in issue 10:

  • https://github.com/ForbesLindesay/sync-rpc/issues/10

nktnet1 avatar Oct 08 '23 14:10 nktnet1