-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Listener: fix a crash when updating any listener that does not bind to port #18421
Conversation
@lizan since this is blocking istio-proxy from picking up the change. |
ref: istio/istio#34188 |
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks generally LGTM with small comments.
/wait
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
/retest |
Retrying Azure Pipelines: |
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, one question.
/wait-any
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
Signed-off-by: Yuchen Dai <silentdai@gmail.com>
LGTM but unfortunately needs another main merge. /wait |
Thanks! Just did it |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
@mattklein123 Thank you for the fast and friendly collaboration! |
I see conflict show up again at WebUI but my origin/main is updated. I will keep watch on this |
@lambdai do we want to backport this to 1.20.x? |
yes, I plan to propose /backport when this is merged. |
Should I do it earlier? |
/backport |
@lizan @mathetake This is 1.20 only and it's critical for istio release See istio/istio#34188 I can create the PR when this one is merged. WDTY? |
…o port (envoyproxy#18421) Signed-off-by: Yuchen Dai <silentdai@gmail.com>
@mathetake is OOO Yes we should backport this to 1.20.x |
…o port (#18421) (#18505) backport e84987c to v1.20 Fix the crash caused by listener update when the any listener set bind_to_port to false. A listener does not bind to port has no io handle. close() already check it. Now add the check to isOpen(). Also the Tcp(or Udp)ListenSocket::duplicate() creates parent ListenSocketImpl Make it returning the derived ListenSocket, either TcpListenSocket or UdpListenSocket Signed-off-by: Yuchen Dai <silentdai@gmail.com>
…o port (envoyproxy#18421) (envoyproxy#18505) backport e84987c to v1.20 Fix the crash caused by listener update when the any listener set bind_to_port to false. A listener does not bind to port has no io handle. close() already check it. Now add the check to isOpen(). Also the Tcp(or Udp)ListenSocket::duplicate() creates parent ListenSocketImpl Make it returning the derived ListenSocket, either TcpListenSocket or UdpListenSocket Signed-off-by: Yuchen Dai <silentdai@gmail.com>
Commit Message:
Fix the crash caused by listener update when the any listener set bind_to_port to false.
A listener does not bind to port has no io handle. close() already check it.
Now add the check to isOpen().
Also the Tcp(or Udp)ListenSocket::duplicate() creates parent ListenSocketImpl
Make it returning the derived ListenSocket, either TcpListenSocket or UdpListenSocket
Additional Description:
Risk Level:
Testing: Unit test on duplicate. Integration test on bind_to_port.
Docs Changes:
Release Notes:
Platform Specific Features:
[Optional Runtime guard:]
[Optional Fixes #Issue]
[Optional Fixes commit #PR or SHA]
[Optional Deprecated:]
[Optional API Considerations:]