-
Notifications
You must be signed in to change notification settings - Fork 846
Make Http3App class responsible for H3 transaction creation/deletion #9346
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
Conversation
a1bab3f to
9a3b1b6
Compare
9a3b1b6 to
da68d2c
Compare
proxy/http3/Http3Session.cc
Outdated
| HQTransaction *t = this->_transaction_list.head; | ||
| while (t) { | ||
| ink_assert(t); | ||
| auto x = t; |
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.
I realized we can't simply do t->link.next because it's already deleted.
f94a563 to
eb5ffd8
Compare
| delete t; | ||
| } | ||
| // Transactions should be deleted first before HQSesson gets deleted. | ||
| ink_assert(this->_transaction_list.head); |
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.
We originally had cleanup code here, but I realized that deleting a transaction modifies the transaction list. I removed the cleanup code since it was just a safety net.
|
[approve ci] |
brbzull0
left a comment
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.
I don't see any issues with this change. Looks good to me. Thanks.
No description provided.