Skip to content

关于io_service中stop函数的问题 #360

Description

@koobin

io_service的stop函数执行时只是内部关闭了transports,清除了ransports相关的资源,并没有close channel,也没有clear timer,也并不会触发YEK_ON_CLOSE事件,这样就会使得与YEK_ON_OPEN事件不能成对,导致用户在YEK_ON_OPEN生成的资源没有好的时机释放。

鉴于以上问题能否考虑在stop函数中先close掉所有channel,然后再关闭所有timer,等待所有transport关闭再释放所有transport相关资源?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions