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

UserAuthHandler线程安全问题 #8

Open
Xtick opened this issue Dec 17, 2019 · 0 comments
Open

UserAuthHandler线程安全问题 #8

Xtick opened this issue Dec 17, 2019 · 0 comments

Comments

@Xtick
Copy link

Xtick commented Dec 17, 2019

在初始化NettyServer的时候,在通道添加handler时,会new一个UserAuthHandler进行初始化,但是如果说NettyServer是单例运行的,那么UserAuthHandler在初始化后也只有一个实例,此时的局部变量handShaker在并发量增多的时候,是否会有线程安全问题?

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

No branches or pull requests

1 participant