Connection Pool fails to handle system time changes correctlry
--------------------------------------------------------------
Key: DNET-787
URL: http://tracker.firebirdsql.org/browse/DNET-787
Project: .NET Data provider
Issue Type: Bug
Components: ADO.NET Provider
Affects Versions: 5.9.1.0
Environment: Any
Reporter: Johannes Lochmann
Assignee: Jiri Cincura
FbConnectionPoolManager's check if a connection is alive fails if the system
time travels back in time (changing time zones or daylight saving times while
the application is running, for example)
Comparing the absolute difference of the values after adding the
connectionLifeTime to the created time should fix the problem.
static bool IsAlive(long connectionLifeTime, DateTimeOffset created,
DateTimeOffset now)
{
if (connectionLifeTime == 0)
return true;
return created.AddSeconds(connectionLifeTime) > now;
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://tracker.firebirdsql.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Firebird-net-provider mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider