globalsign / mgo

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

'big cpu use' problem #143

Closed JeffreyDing11223 closed 6 years ago

JeffreyDing11223 commented 6 years ago

https://github.com/go-mgo/mgo/issues/403 I got the 'big cpu use problem' as like as #403 , because of func (c *Client) saltPassword(salt []byte, iterCount int) {

in the func (s *Session) acquireSocket(slaveOk bool) (*mongoSocket, error) { after s.cluster().AcquireSocket(, will go to s.socketLogin(sock) , and then happen the above problem , the problem always happen after the program has run 1 or 2 hours

JeffreyDing11223 commented 6 years ago

I think it is related to this issue https://github.com/go-mgo/mgo/issues/254 I pulled the newest codes just now , see the problem will happen or not

domodwyer commented 6 years ago

Hi @JeffreyDing11223

This is either due to the bug you mentioned which has been fixed in our code, or can be resolved via the instructions in 403. Either way, we can only help with the latest version of our fork. I hope it helps!

Dom