-
Notifications
You must be signed in to change notification settings - Fork 166
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
Yeast.yeast() is not thread safe #100
Comments
Maybe use an |
Hi @trinopoty, sorry for the delay on this issue.
If I'm not mistaken, the string created by yeast is used in the query params, to prevent a proxy from caching the response of the server. Are you suggesting it does happen when sending several HTTP requests in a row? Note: in the JS server, the session ID ( |
Yeast is using |
Oh ok, thanks for the explanation! That being said, the |
Yeast.yeast()
is not thread safe. If two thread calls it almost simultaneously, it is prone to returning same value.I don't know how this problem has not surfaced till date but in the socket.io java server project, this is causing problems like two distinct connections getting the same id.
Also, as a side note,
Yeast.yeast()
usesnew Date()
every time which may cause problems if called frequently (memory wastage).Can you please fix this issue and update the library.
The text was updated successfully, but these errors were encountered: