Hi,
am trying to figure out why it doesn't or how to release the postgres
connections.
I think I essentially follow the example but with code like this:
</%pre>
<%request scope="global">
tntdb::Connection conn(tntdb::connectCached(DB_CONNECTION));
</%request>
<%cpp>
tntdb::setMaxPoolSize(3);
// ... prepared statement queries, updates etc
// and reply, e.g. reply.sendReply(404, "invalid request");
// then at the end ...
conn = tntdb::Connection();
tntdb::dropCached();
</%cpp>
Yet the connections on the database server only ever go in one direction -
up, they never fall unless I run a script to release idle connections.
Is there a better way to achieve my goal other than periodically killing
off the idle connections? - I'm trying to be economical with the number of
connection opened as it runs on AWS with the connection limiting/charging
regime.
Cheers,
Andrew
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Tntnet-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tntnet-general