Skip to content

co_poll_inner函数有个异常情况需要处理 #46

Closed
@lichuang

Description

@lichuang

在AddTimeout出错的情况下,应该把前面已经加入到epoll的fd删除掉,否则这里返回了,而epoll调用回来的时候指针已经是野指针了。尽管AddTimeout出错的情况比较罕见,但是我确实是碰到了。

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions