[CSHARP-37] In PooledConnectionFactory.IsAlive, IsConnected and IsInvalid checks should be before lifetime checks. Created: 12/Apr/10  Updated: 19/Oct/16  Resolved: 21/May/10

Status: Closed
Project: C# Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Major - P3
Reporter: Doug Marien Assignee: Steve Wagner
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

A connection may be dead/invalid before the lifetime expires meaning the pool will be returning known dead connections until then.



 Comments   
Comment by Doug Marien [ 12/Apr/10 ]

Sorry, you're right, I mis-read the code thinking it was early-outing if the connection lifetime has NOT expired. My bad.

Comment by Steve Wagner [ 12/Apr/10 ]

I changed that. But it not an issue. The lifetime checks are only returns if the lifetime is reached. A connection is only alive when all checks are true.

Generated at Wed Feb 07 21:35:38 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.