memcached
memcached copied to clipboard
process hangs after close()
My process fails to connect to a memcache server in test logic, then the process hangs. I am calling memcached.end();
, but the process still hangs.
After debugging with node debugger, and wtfnode, I was able to determine that memcached was generating a couple timers in connection.js
.
After waiting 5 minutes (the failuresReset timeout), the process exits as expected.
Ideally memcache.end
also closes any in-process timers, so the process may exit.