-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Appears to leave pending timeouts after request completes successfully #202
Comments
davidmc24
changed the title
Appears to leave hanging resources after request completes successfully
Appears to leave pending timeouts after request completes successfully
Jul 2, 2021
Thank you for the very well documented bug report! We'll get to fixing this in the next few weeks. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thank you for this library. Overall, it was easy to use and did what it needed to. I just ran into one small problem with it.
I'm working on a Node process that creates PagerDuty Events with this library. I'm currently testing some of the logic with a simple command-line script that creates the event and then completes.
My expectation was that the process would exit immediately after returning, but what I'm actually seeing is that, by default, the process doesn't exit until 30 seconds later. Through experimentation, I determined that configuring
requestTimeout
adjusts how long the process hangs after completion.It seems likely that you're missing some
clearTimeout
calls.Minimal script to reproduce below.
Run it like this:
time node index.mjs <ROUTING_KEY>
time node index.mjs <ROUTING_KEY> 1000
The text was updated successfully, but these errors were encountered: