Skip to content

internal RPC/REST http server has no timeout-implementation #5526

@jonasschnelli

Description

@jonasschnelli

There is no connection timeout for the internal http server (REST/RPC).
Malfunction clients could produce zombi-idling rpc threads.
I had a look at it and there would be need to change the current implementation to do it async (something like boost::asio async). Currently it's a getline() on the raw stream.

A good starting point could be: http://www.boost.org/doc/libs/1_45_0/doc/html/boost_asio/example/timeouts/async_tcp_client.cpp

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