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

bug: OpenConnector will cause seataDriver() infinte recursion。 #386

Closed
106umao opened this issue Dec 4, 2022 · 1 comment · Fixed by #387
Closed

bug: OpenConnector will cause seataDriver() infinte recursion。 #386

106umao opened this issue Dec 4, 2022 · 1 comment · Fixed by #387

Comments

@106umao
Copy link
Contributor

106umao commented Dec 4, 2022

image

这里如果设置成自身的话,会导致 seataConnector.Driver() 方法出现死循环:seataConnection.target(dsnConnector).Driver() == seataDriver, 最后返回 &seataDriver(seataDriver),那么这之后针对 seataDriver 的所有涉及代理对象的方法都会出现无限递归。

@Issues-translate-bot
Copy link

RoBot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


image

If it is set to itself here, it will cause an infinite loop in the seataConnector.Driver() method: seataConnection.target(dsnConnector).Driver() == seataDriver, and finally return &seataDriver(seataDriver), then all related proxy objects for seataDriver after that method will have infinite recursion.

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

Successfully merging a pull request may close this issue.

2 participants