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

Motan能支持跨线程传递上线文吗 #1037

Open
FangWenjun opened this issue Jul 28, 2023 · 1 comment
Open

Motan能支持跨线程传递上线文吗 #1037

FangWenjun opened this issue Jul 28, 2023 · 1 comment

Comments

@FangWenjun
Copy link

Montan里有RpcContext里面使用的是ThreadLocal来存储上下文参数的,这种方式如果存在垮线程场景会导致上下文传输中断,这个有办法解决吗

@rayzhang0603
Copy link
Collaborator

Motan的RpcContext是基于ThreadLocal机制,跨线程时需要自行透传对应的RpcContext,比如在生成异步执行的Runable任务时透传对应的RpcContext

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