mirror of
https://github.com/brianc/node-postgres.git
synced 2026-01-25 16:03:13 +00:00
Created request 10 times then connect abort (markdown)
parent
e58dfcee99
commit
16f5a7d403
14
request-10-times-then-connect-abort.md
Normal file
14
request-10-times-then-connect-abort.md
Normal file
@ -0,0 +1,14 @@
|
||||
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