3rd-Eden / memcached

A fully featured Memcached client build on top of Node.js. Build with scaling in mind so it will support Memcached clusters and consistent hashing.
MIT License
1.31k stars 276 forks source link

Replaced ping-based healthcheck with net.createConnection #351

Open mutantcornholio opened 5 years ago

mutantcornholio commented 5 years ago

Older ping-based healthcheck had a bunch of problems:

Healthcheck with net.createConnection seems to be a much simpler and more robust alternative

Two test were needed changing:

mutantcornholio commented 5 years ago

Test are faililng on nodejs 4/5 because mocha@^4 uses object destructuring, which isn't supported by those versions of node.

Downgrading to mocha@^3 helps

mutantcornholio commented 5 years ago

@3rd-Eden what do you think?

mutantcornholio commented 5 years ago

@mapleeit, @kevin-greene-ck, looks like you are maintainers now?

mutantcornholio commented 5 years ago

Anyone? @3rd-Eden @mapleeit @kevin-greene-ck ?

aakarsh commented 4 years ago

@mutantcornholio @3rd-Eden Any one working to integrate this, we are in environment without ping command, this will help us.

mutantcornholio commented 4 years ago

I've published fork here: https://www.npmjs.com/package/memecached https://github.com/mutantcornholio/memcached

This PR is the only difference in code now