Re: [opendbx] /dev/urandom file descritpors left open, libopendbx-devel Digest, Vol 49, Issue 1

2014-01-28 Thread Norbert Sendetzky
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Adam When we call Result::finish(), Conn::unbind(), Conn::finish() all three calls complete correctly, When the function is exited the OpenDBX::Result object goes out of scope and the destructor is called. In the destructor,

Re: [opendbx] /dev/urandom file descritpors left open, libopendbx-devel Digest, Vol 49, Issue 1

2014-01-28 Thread Levine, Adam
Norbert, BTW, I ran 1,000,000 rapid fire select statements yesterday using a global/static OpenDBX::Conn object and did not crash. As stated when using a global object only one /dev/urandom file descriptor is opened and left open. Regarding Conn::finish() the Test function with crash on

Re: [opendbx] /dev/urandom file descritpors left open, libopendbx-devel Digest, Vol 49, Issue 1

2014-01-28 Thread Norbert Sendetzky
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Adam // Norbert, if this object is declared here then each call to this function // leaves a /dev/urandom file descriptor open. Making it global leaves only // a single file descriptor open. #ifndef USE_GLOBAL_DB_OBJECT OpenDBX::Conn