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

user_initialize で deferredチェーンが全てメモリに残り続ける問題 #7

Open
tsutsui opened this issue Jan 15, 2022 · 1 comment

Comments

@tsutsui
Copy link
Collaborator

tsutsui commented Jan 15, 2022

#6 (既知のWorldにおいてaccount/verify_credentialsを2回以上呼び出さないようにした)
Delayer::Deferred を用いた実装において、
「deferredチェーンが全てメモリに残り続ける」という問題がある
という shibafu528 氏本人からの指摘がある。

#6 においては対外 DoS のほうがローカル memory leak よりも重大という判断で先にマージしたが、
課題としては忘れないようにとりあえず issue でメモっておく。

@tsutsui
Copy link
Collaborator Author

tsutsui commented Jan 15, 2022

mikutter 本体の mastodon plugin の Plugin::Mastodon::API.call
https://dev.mikutter.hachune.net/projects/mikutter/repository/main/revisions/4c4d581f5627a30665f83d02fa99e2fec985315f/entry/plugin/mastodon/api.rb#L110
あたりが参考になるだろうか、とちょっと見てみたが、前提知識がないと厳しい感じ。
他の用例もいろいろ見てみるか。

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