12.0.0 • Published 9 years ago

node-q-pool v12.0.0

Weekly downloads
1
License
ISC
Repository
-
Last release
9 years ago

The node-q module seems to be losing its connection or for some reason returning undefined from queries after a random amount of time. This goes away when the server is restarted. This is a workaround that creates a pool with new connections every 30 seconds, so there can't be any stale connections that don't work.

Supports k for querying with a connection it from a pool. Also handles ks (without parameters).

var qpool = require('node-q-pool');

qpool.getConnection({{host: "localhost", port: 5000}, function(err, con) {
  if (err) throw err;
  con.k("sum 1 2 3", function(err, res) {
    if (err) throw err;
    console.log("result", res); // 6
  });
});
12.0.0

9 years ago

11.0.0

9 years ago

10.0.0

9 years ago

9.0.0

9 years ago

8.0.0

9 years ago

7.0.0

9 years ago

6.0.0

9 years ago

5.0.0

9 years ago

4.0.0

9 years ago

3.0.0

9 years ago

2.0.0

9 years ago

1.0.0

9 years ago

0.0.0

9 years ago