Closed nelsonic closed 8 years ago
Add these 3 lines to index.js
server.ext('onPostHandler', function (request, reply) {
request.pg && request.pg.done && request.pg.done();
reply.continue();
})
suggested by @rjmk
trying it now.
Seeing the following error when running this:
Debug: internal, implementation, error
Error: write EPIPE
at Object.exports._errnoException (util.js:874:11)
at exports._exceptionWithHostPort (util.js:897:20)
at WriteWrap.afterWrite (net.js:763:14)
@rjmk I think I may have found a simpler solution... :wink:
when a route does not make any queries to postgres, do we still need to close the db connection?
this was noted by @Conorc1000 in: https://github.com/OxfordAbstracts/application/issues/197