pitaya icon indicating copy to clipboard operation
pitaya copied to clipboard

oldSession.kick() in unique_session.go causes session.Bind() to fail

Open kokais opened this issue 3 years ago • 1 comments

In Cluster mode, the frontend service reported some bind session error: "close closed session". When session.Bind is executed, unique_session.go will execute oldSession.Kick. If oldSession is closed, it will return that error:"close closed session". So, my question is whether the "session.OnSessionBind" in unique_session.go does not need to return the error when oldSession.Kick, then session.Bind can bind the current uid normally.

kokais avatar Jul 17 '21 10:07 kokais

Doing that may cover some bugs or issues for the server. The most important thing is to locate the problem and solve it.

bruce1125 avatar Dec 11 '23 02:12 bruce1125