I found the problem in #336 ,but I can't accept the answer for closing it so casually!
You didn't even have a try. But it seems to be fixed #329
But I'm not sure it is the really same issue,so I will repeat it
steps of reappearance :
Create more than limited session before reaching the pool limit!
eg
limit:100
create 200 sessions immediately ,it will occur
The pool limit will effect only when we create session slowly to limit....
Your test(github.com\globalsign\mgo\cluster_test.go) is in the same go routine,so it always reuse the same connections!
I found the problem in #336 ,but I can't accept the answer for closing it so casually! You didn't even have a try. But it seems to be fixed #329 But I'm not sure it is the really same issue,so I will repeat it steps of reappearance : Create more than limited session before reaching the pool limit! eg limit:100 create 200 sessions immediately ,it will occur
The pool limit will effect only when we create session slowly to limit.... Your test(github.com\globalsign\mgo\cluster_test.go) is in the same go routine,so it always reuse the same connections!
I am sorry for my poor English.