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

Add cancelable timer task, update thread/go task's state when timeout. #1389

Merged
merged 5 commits into from
Oct 13, 2023
Merged

Add cancelable timer task, update thread/go task's state when timeout. #1389

merged 5 commits into from
Oct 13, 2023

Conversation

Barenboim
Copy link
Contributor

No description provided.

@kedixa
Copy link
Contributor

kedixa commented Oct 12, 2023

What a great feature

@Barenboim Barenboim changed the title Add cancelable timer task. Add cancelable timer task, update thread/go task's state when timeout. Oct 12, 2023
@Barenboim Barenboim merged commit 4409c18 into sogou:master Oct 13, 2023
2 checks passed
timer = mpoller_add_timer(&value, session, &index, this->mpoller);
if (timer)
{
session->timer = timer;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里有没有可能任务已经回调完成并销毁,session已经被释放,导致的非法内存访问

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

会!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

严重错误,这里

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 this pull request may close these issues.

3 participants