lifion / lifion-kinesis

A native Node.js producer and consumer library for Amazon Kinesis Data Streams
MIT License
86 stars 18 forks source link

Exit always blocked after require() #474

Open cherrydev opened 3 years ago

cherrydev commented 3 years ago

Any time after

require('lifion-kinesis');

is called, the node script will not exit unless forced to. No other functions need to be called to see this behaviour. I've tried running wtfnode which will find open files, ports, timers, etc, etc and I get the following output:

[WTF Node?] open handles:
- File descriptors: (note: stdio always exists)
  - fd 1 (tty) (stdio)
  - fd 2 (tty) (stdio)
- Others:
  - MessagePort

MessagePort implies (based on my really limited knowledge) that maybe a worker thread is opened somewhere? At a glance I'm not seeing what could be causing this, or any library you're using that might be using MessagePort or worker threads.

eaviles commented 3 years ago

We will investigate ASAP. Thanks for reporting!