mirror of
https://github.com/brianc/node-postgres.git
synced 2026-01-25 16:03:13 +00:00
Destroyed request 10 times then connect abort (markdown)
parent
e1398778b0
commit
44ac4d594f
@ -1,14 +0,0 @@
|
||||
router.get('/', function(req, res, next) {
|
||||
let querys=req.query;
|
||||
pg.connect(constr, function(err, client, done) {
|
||||
if (err) {
|
||||
console.log(err);
|
||||
res.send({status:err});
|
||||
return;
|
||||
}
|
||||
res.send({status:'ok'});
|
||||
client.end();
|
||||
});
|
||||
});
|
||||
|
||||
when i request 10 times,the pg connect is no response and no err but could not connect...please help me
|
||||
Loading…
x
Reference in New Issue
Block a user