Skip to content

addr::remote() always returns None with externally-provided TcpListener #830

Open
@mcginty

Description

@mcginty

there's no way currently to run a warp service that depends on the addr::remote() filter when served from a custom-initialized TCP socket, as neither Server::run_incoming2() nor FilteredService::call_with_addr() are accessible from outside the crate, so even trying the warp::service() route doesn't help.

#713 attempts to solve this one way, but it seems to have not gotten any activity.

In its simplest form, is there any reason not to simply make FilteredService::call_with_addr() public?

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions