globalsign / mgo

The MongoDB driver for Go
Other
1.97k stars 230 forks source link

Reappearance of Max Pool limit bug #346

Open tokingHong opened 5 years ago

tokingHong commented 5 years ago

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! image

I am sorry for my poor English.