Skip to content

virtual listener should not assign listen socket #16258

Closed

Description

@lambdai

Hard-coded ports cause issues in CI when multiple configurations run on the same machine. See other integration tests for examples of how to do this.

Originally posted by @ggreenway in #15842 (comment)

Envoy listener does not listen at the address if the listener doesn't bind to port. However, Envoy call SocketInterfaceImpl::socket() which fails fast if the socket is not available.

Activity

  1. self-assigned this
    on Apr 30, 2021
  2. lambdai commented on Apr 30, 2021

    @lambdai
    ContributorAuthor

    I realize the bind_to_port=false listener owns an iohandle. It doesn't make sense. Those listener does not need an libevent event to drive the listener. No io operation(accept, bind) is needed.

    We should create a no-op IoHandle, or allow those listeners containing no ioHandle if bind_to_port is false.

    WDTY? @htuch @mattklein123

  3. lambdai commented on Apr 30, 2021

    @lambdai
    ContributorAuthor

    #16259 is a PoC
    It add ASSERT to verify that iohandle is not used by bind_to_port_ = false listener

  4. lambdai commented on Apr 30, 2021

    @lambdai
    ContributorAuthor

    The only failing test is QuicListener
    QuicListener and TcpListener might have a different expectation on bind_to_port.
    It should be easy to fix although I don't know the exact fix yet.

    The rest of the test is parsing

  5. htuch commented on May 2, 2021

    @htuch
    Member

    Seems reasonable not to have any listener socket or I/O handles on the virtual listeners.

  6. changed the title [-]IPV6 only test may fail RebalancerTest[/-] [+]virtual listener should not assign listen socket[/+] on May 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

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