-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
Scripts not exiting #310
Comments
This is not related to #307. This is related to the use of the new keepalive agent being used by the SDK to improve latency when sending many requests to a service. It looks like this agent is keeping the connection alive indefinitely. I'm investigating if there is an issue with the library of if it is just being misused. You can workaround this issue by reverting back to the global agent for now: AWS.config.httpOptions = {agent: require('https').globalAgent}; |
Using |
Hmmm, I didn't try https though |
Using the In other words, if you passed an agentkeepalive Agent.HttpsAgent() in, it should be equivalent to the example. Something else must be going on that causes the hang, but it is somehow related to this library. |
Just tried, their https example works fine too... Not sure what's going on! |
It has to do with timeout behavior on the socket. Adding |
I've reverted agentkeepalive for the time being until we can figure out a less intrusive way to add keepalive behavior. This should be out in the next release. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs and link to relevant comments in this thread. |
The following script prints
done
but doesn't exit. Onaws-sdk
2.0.3
and nodev0.10.29
:Perhaps there's something still being held by the event loop?
This may also be related to #307?
The text was updated successfully, but these errors were encountered: