maskit commented on code in PR #13908:
URL: https://github.com/apache/trafficserver/pull/13908#discussion_r4558861898
##########
src/iocore/net/SNIActionPerformer.cc:
##########
@@ -182,16 +182,21 @@ TunnelDestination::TunnelDestination(const
std::string_view &dest, SNIRoutingTyp
int
TunnelDestination::SNIAction(SSL &ssl, const Context &ctx) const
{
- auto snis = TLSSNISupport::getInstance(&ssl);
auto tuns = TLSTunnelSupport::getInstance(&ssl);
auto alpns = ALPNSupport::getInstance(&ssl);
- auto ssl_netvc = SSLNetVCAccess(&ssl);
+ auto ssl_netvc = dynamic_cast<SSLNetVConnection *>(NetVCAccess(&ssl));
Review Comment:
This is exactly what concerns me, and the reason I said "if dynamic_casts is
acceptable". `SSLNetVCAccess` only use dynamic_cast on debug build (ink_asert)
for this reason. The complicated `getInstance(&ssl)` stuff was introduced to
address the issue.
I'm fine with this if there's no real performance issue. But I'd introduce
another mix-in, or extend existing one.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]