Github user oknet commented on a diff in the pull request:

    https://github.com/apache/trafficserver/pull/1446#discussion_r104651844
  
    --- Diff: iocore/net/SSLNetVConnection.cc ---
    @@ -1438,17 +1438,22 @@ bool
     SSLNetVConnection::callHooks(TSEvent eventId)
     {
       // Only dealing with the SNI/CERT hook so far.
    -  ink_assert(eventId == TS_EVENT_SSL_CERT);
    +  ink_assert(eventId == TS_EVENT_SSL_CERT || eventId == 
TS_EVENT_SSL_SERVERNAME);
       Debug("ssl", "callHooks sslHandshakeHookState=%d", 
this->sslHandshakeHookState);
     
       // First time through, set the type of the hook that is currently being 
invoked
    -  if (HANDSHAKE_HOOKS_PRE == sslHandshakeHookState) {
    +  if ((this->sslHandshakeHookState == HANDSHAKE_HOOKS_PRE || 
this->sslHandshakeHookState == HANDSHAKE_HOOKS_DONE) &&
    --- End diff --
    
    @shinrich Why you add "this->sslHandshakeHookState == HANDSHAKE_HOOKS_DONE" 
here ?


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to