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

关于session的问题 #536

Open
LOVE2CMOL opened this issue Mar 24, 2022 · 0 comments
Open

关于session的问题 #536

LOVE2CMOL opened this issue Mar 24, 2022 · 0 comments

Comments

@LOVE2CMOL
Copy link

LOVE2CMOL commented Mar 24, 2022

例如我请求A接口的同时请求了B

条件1
A带session的修改
B不带修改
条件2
B处理的速度比A时间长

那么 这个SESSION就会不变

我看代码推断大概的原因是 这个处理是先在 HTTP_GLOBAL_ON_REQUEST先去缓存取出数据 然后HTTP_GLOBAL_AFTER_REQUEST在写入缓存 所以就会出现 如果一个进程比带更新数据的进程慢了 就会把旧数据又重新覆盖到新数据上 导致数据不变

image

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