Skip to content

hostport_listener stop listening for connections after first call to on_accept with an error #742

Open
@sridmad

Description

@sridmad

The code in hostport_listener::on_accept does not subscribe to listening for new connections if it was called with an error. As a result a http based rest server stops accepting connections if an error occurs.

See https://www.boost.org/doc/libs/1_63_0/doc/html/boost_asio/tutorial.html#boost_asio.tutorial.tutdaytime3 for pattern.

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