[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. |