Skip to content

0.9devel async_server run stop listen synchronization issue #36

@simonncollins

Description

@simonncollins

if you bind async_server::run to a thread and then immediately call stop on that server instance, you can end up with a sync issue where calling cancel or similar on the acceptor will throw because it may not be open and listening yet.

a possible fix would be to check if async_server is in listening mode yet or not, and then only attempt to cancel the acceptor if so.

further, checking if async_server is stopping before attempting to start_listening would be useful too.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions