-
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
lua: reset downstream_ssl_connection in StreamInfoWrapper when object is marked dead by Lua GC #14092
lua: reset downstream_ssl_connection in StreamInfoWrapper when object is marked dead by Lua GC #14092
Conversation
Signed-off-by: Marcin Falkowski <[email protected]>
Signed-off-by: Marcin Falkowski <[email protected]>
…connection-segfault-fix Signed-off-by: Marcin Falkowski <[email protected]>
Signed-off-by: Marcin Falkowski <[email protected]>
I am not sure, but it looks like CI failed for reasons unrelated to this change (Windows build hanged) |
@dio just letting you know. Maybe you will be interested in reviewing this. |
/retest |
Retrying Azure Pipelines: |
/retest |
Retrying Azure Pipelines: |
…connection-segfault-fix Signed-off-by: Marcin Falkowski <[email protected]>
Thank you for this! @MarcinFalkowski could you try to merge main? Hopefully the coverage test failure will be fixed. |
…connection-segfault-fix Signed-off-by: Marcin Falkowski <[email protected]>
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.
Looks good. I think you need to merge master. And one super nit and an ask for help.
|
||
setup(SCRIPT); | ||
|
||
auto connection_info = std::make_shared<Ssl::MockConnectionInfo>(); |
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.
Nit. use const
? And since you're here probably the above one too.
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 for a review. I will fix it. Just to be sure - by "above one" you mean the other instance of auto connection_info = std::make_shared<Ssl::MockConnectionInfo>();
in this file?
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.
Yes, you're correct. Thank you so much!
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.
done
Signed-off-by: Marcin Falkowski <[email protected]>
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.
Super cool. Thank you for working on this!
@dio CI is green. Hope we can merge it now. Thanks for a review |
@mattklein123 do you want to take another look at this? And should we backport this? Thank you! cc. @cpakulski |
… is marked dead by Lua GC (envoyproxy#14092) Fixes envoyproxy#14091 The problem and fix is similiar to envoyproxy#4312 Risk Level: Low Testing: regression test, manual testing Docs Changes: N/A Release Notes: N/A Signed-off-by: Marcin Falkowski <[email protected]>
… is marked dead by Lua GC (envoyproxy#14092) Fixes envoyproxy#14091 The problem and fix is similiar to envoyproxy#4312 Risk Level: Low Testing: regression test, manual testing Docs Changes: N/A Release Notes: N/A Signed-off-by: Marcin Falkowski <[email protected]> Signed-off-by: Qin Qin <[email protected]>
… is marked dead by Lua GC (envoyproxy#14092) Fixes envoyproxy#14091 The problem and fix is similiar to envoyproxy#4312 Risk Level: Low Testing: regression test, manual testing Docs Changes: N/A Release Notes: N/A Signed-off-by: Marcin Falkowski <[email protected]> Signed-off-by: Christoph Pakulski <[email protected]>
… is marked dead by Lua GC (#14092) (#14449) Co-authored-by: Marcin Falkowski <[email protected]>
Backports to releases 1.13-1.15 are not required because SSL connection is not exposed through LUA in those releases. |
* backport to 1.16: http: fixing a bug with IPv6 hosts (envoyproxy#14238) Fixing a bug where HTTP parser offsets for IPv6 hosts did not include [] and Envoy assumed it did. This results in mis-parsing addresses for IPv6 CONNECT requests and IPv6 hosts in fully URLs over HTTP/1.1 Risk Level: low Testing: new unit, integration tests Docs Changes: n/a Release Notes: inline Signed-off-by: Shikugawa <[email protected]> Co-authored-by: alyssawilk <[email protected]> * backport to 1.16: vrp: allow supervisord to open its log file (envoyproxy#14066) (envoyproxy#14279) Commit Message: Allow supervisord to open its log file Additional Description: Change the default location of the log file and give supervisord permissions to write to it. Risk Level: low Testing: built image locally Docs Changes: n/a Release Notes: n/a Platform Specific Features: n/a Signed-off-by: Alex Konradi <[email protected]> Signed-off-by: Christoph Pakulski <[email protected]> * Closing release 1.16.2. (envoyproxy#14308) Signed-off-by: Christoph Pakulski <[email protected]> * Kick-off rel 1.16.3. (envoyproxy#14321) Signed-off-by: Christoph Pakulski <[email protected]> * lua: reset downstream_ssl_connection in StreamInfoWrapper when object is marked dead by Lua GC (envoyproxy#14092) (envoyproxy#14449) Co-authored-by: Marcin Falkowski <[email protected]> * backport to 1.16: tls: fix detection of the upstream connection close event. (envoyproxy#13858) (envoyproxy#14452) Fixes envoyproxy#13856. This change also contains the following backports: - build: Fix some unused variable warnings (envoyproxy#13987) - test: Check in all TLS test certs (envoyproxy#13702) Signed-off-by: Piotr Sikora <[email protected]> Signed-off-by: Christoph Pakulski <[email protected]> * backport to 1.16: aggregate cluster: fix TLS init issue (envoyproxy#14456) Additional Description: Based on envoyproxy#14388 Risk Level: Low Testing: Build and run the repro from envoyproxy#14119 without crashing, `bazel test test/extensions/clusters/aggregate:cluster_test` Docs Changes: N/A Release Notes: envoyproxy#14119 Signed-off-by: Taylor Barrella <[email protected]> Co-authored-by: Rei Shimizu <[email protected]> Co-authored-by: Christoph Pakulski <[email protected]> Co-authored-by: Marcin Falkowski <[email protected]>
Fixes #14091
The problem and fix is similiar to #4312
Risk Level: Low
Testing: regression test, manual testing
Docs Changes: N/A
Release Notes: N/A