I'm using soci for making my app interact with databases and currently I use MySQL server to test. I have wrapped SOCI into simple class where I call session.open() in Connect method of my class

|m_session.open(soci::mysql,  connString);
|

Then in destructor I call the close method

|m_session.close();
|

But When I use the class few times (creating and destroying objects of this class) I find that soci fails to connects to MySQL server with error too many connections. I'm confused since I call the close method on destructor, I suppose that soci should release the connection. Checking soci docs I cannot see anything than close().

Is there a way to force soci::session to release connection?

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Soci-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/soci-users

Reply via email to