I am using SQL Server by ODBC Driver with Poco::Data::SessionPool.
If connection string is wrong and I try to link to SQL Server the first time, example:
- Code: Select all
...
_ptDBOptB = new Poco::Data::SessionPool("ODBC", strConnString);
Poco::Data::Session tSess(_ptDBOptB->get());
...
I receive an exception "Poco::Data::ConnectionFailedException" and that is right. But I have noticed that the Login Timeout is higher.
Is it possible reduce the Login Timeout? The "get" method in SessionPool doesn't have a Timeout parameter:
- Code: Select all
...
Poco::Data::Session tSess(_ptDBOptB->get(TIMEOUT));
...
How could I set a Timeout in Connection Pool?
Thanks
Giulio.





