You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
virtual listener should not assign listen socket #16258
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.
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.
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.
Activity
lambdai commentedon Apr 30, 2021
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
lambdai commentedon Apr 30, 2021
#16259 is a PoC
It add ASSERT to verify that iohandle is not used by bind_to_port_ = false listener
lambdai commentedon Apr 30, 2021
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
htuch commentedon May 2, 2021
Seems reasonable not to have any listener socket or I/O handles on the virtual listeners.
[-]IPV6 only test may fail RebalancerTest[/-][+]virtual listener should not assign listen socket[/+]