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

ContextFactory Cache Error #1

Closed
arcadeindy opened this issue Aug 25, 2018 · 3 comments
Closed

ContextFactory Cache Error #1

arcadeindy opened this issue Aug 25, 2018 · 3 comments

Comments

@arcadeindy
Copy link

  1. Setting Websocker server max count = 2 and cache = true
  2. When Client 1 and Client 2 connect to server => Everything Work.
  3. After Client 1 and Client 2 disconnected from server.
  4. Client 3, 4, 5 try to connect to server => Everything Failed.

Maybe UserToken cannot reuse from ContextFactory. because when i setting cache = false => Result is work good.

@yswenli
Copy link
Owner

yswenli commented Sep 8, 2018

Thank you for your feedback.But I didn't understand which scene you were talking about.At present, I have been optimizing and updating, and subsequent versions may have solved these problems.

@yswenli
Copy link
Owner

yswenli commented Sep 8, 2018

I see what you mean, because of the complexity of the SocketAsyncEventArgs model, UserToken hasn't found a suitable way to cache yet. There is a problem in SocketAsyncEventArgs that this instance of SocketAsyncEventArgs cannot be reused when UserToken is not empty. So I've reconstructed the cache block later.

@arcadeindy
Copy link
Author

arcadeindy commented Sep 25, 2018

Thank you for your fixed. I try to use change from superwebsocket to your library for my game server.

@yswenli yswenli closed this as completed Sep 28, 2018
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

2 participants