-
Notifications
You must be signed in to change notification settings - Fork 70
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Retry to get session when session is invalid in SessionPool
#252
Conversation
8c88f81
to
5d69c43
Compare
we may need such retry mechanism in all clients :D |
Can you merge this PR to master? We are still working on the http support for |
pool.rwLock.Lock() | ||
defer pool.rwLock.Unlock() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it be possible to reduce the granularity of lock?
Only need to lock *list.List, not during session creation, execution, etc.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, we should recheck the lock usage later.
* Update readme for v3.4 release (#250) * Fix format * Update README * Retry to get session when session is invalid * Simplify client test * Add comments * Add comments
…261) * Update readme for v3.4 release (#250) * Fix format * Update README * Retry to get session when session is invalid * Simplify client test * Add comments * Add comments Co-authored-by: Yichen Wang <[email protected]>
What type of PR is this?
What problem(s) does this PR solve?
Issue(s) number:
Close #248
Description:
How do you solve it?
Special notes for your reviewer, ex. impact of this fix, design document, etc: