Skip to content
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

Fix#3 #4

Merged
merged 1 commit into from
Dec 8, 2016
Merged

Fix#3 #4

merged 1 commit into from
Dec 8, 2016

Conversation

narrowizard
Copy link
Contributor

bug issue #3 fixed.

var ss, ok = this.sessions[sessionId]
if ok {
if ss.Dead() {
this.rwm.RUnlock()
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

RUnlock should unlock after var ss, ok = this.sessions[sessionId]. Don't call RUnlock twice.

@kdada
Copy link
Owner

kdada commented Dec 7, 2016

Please squash your commits

@narrowizard

提高锁的效率

use write mutex when update session deadline.

use write mutex when update session deadline.
@narrowizard
Copy link
Contributor Author

commits rebased.
@kdada

@kdada
Copy link
Owner

kdada commented Dec 8, 2016

LGTM

@kdada kdada merged commit c9c3663 into kdada:master Dec 8, 2016
@narrowizard narrowizard deleted the fix#1 branch December 8, 2016 02:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants