[GODRIVER-750] MaxConnIdleTime not working Created: 06/Jan/19  Updated: 28/Jan/19  Resolved: 28/Jan/19

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

Type: Bug Priority: Major - P3
Reporter: wzhsh90 Assignee: Kristofer Brandow (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

mOpt := options.Client()
mOpt.SetSingle(false)
mOpt.SetHeartbeatInterval(15 * time.Second)
mOpt.SetMaxConnIdleTime(5000)
mOpt.SetMaxPoolSize(100)

 

that is my code , but I find the connection never release after the max idle time .

 



 Comments   
Comment by Kristofer Brandow (Inactive) [ 08/Jan/19 ]

Hi wzhsh,

The connection pool implementation is lazy, so expired idle connections will only be closed once an attempt to retrieve a connection is made. Does this answer your inquiry?

You can follow along with GODRIVER-755 for a potential change in the pool implementation.

Thanks,

Kris

Comment by wzhsh90 [ 06/Jan/19 ]

that is not work, I type the wrong word

Generated at Thu Feb 08 08:34:52 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.